26 lines
826 B
C#
26 lines
826 B
C#
using ReserveManagementSystemLib.Models;
|
|
|
|
namespace ReserveManagementSystemApi.Services
|
|
{
|
|
public interface IAuditHistoryService
|
|
{
|
|
Task<IEnumerable<AuditHistory>> GetAllAsync();
|
|
|
|
Task<AuditHistory> FindByIdAsync(int id);
|
|
|
|
Task<AuditHistory> AddHistoryAsync(AuditHistory history);
|
|
|
|
Task<int> AddAuditHistoriesForNonexistingLoansAsync(List<Loan> loans);
|
|
|
|
AuditHistory GetExistingLoanUpdateHistoryAsync(Loan loan, Loan originalLoan);
|
|
|
|
AuditHistory GetAuditHistoryForNonexistingClosedLoan(Loan loan);
|
|
|
|
AuditHistory GetLoanStatusChangeHistory(Loan loan, string oldStatus, string description);
|
|
|
|
Task<int> AddHistoriesAsync(List<AuditHistory> histories);
|
|
|
|
Task AddErrorHistoryAsync(string memberNumber, string loanNumber, string description);
|
|
}
|
|
}
|