2024-04-28 21:34:43 +04:00
|
|
|
|
using BankContracts.BindingModels;
|
|
|
|
|
using BankContracts.SearchModels;
|
|
|
|
|
using BankContracts.ViewModels;
|
2024-04-28 20:20:37 +04:00
|
|
|
|
|
|
|
|
|
namespace BankContracts.StoragesContracts
|
|
|
|
|
{
|
2024-04-28 21:34:43 +04:00
|
|
|
|
public interface IPurchaseStorage
|
2024-04-28 20:20:37 +04:00
|
|
|
|
{
|
2024-04-28 21:34:43 +04:00
|
|
|
|
List<PurchaseViewModel> GetFullList();
|
|
|
|
|
List<PurchaseViewModel> GetFilteredList(PurchaseSearchModel model);
|
|
|
|
|
PurchaseViewModel? GetElement(PurchaseSearchModel model);
|
|
|
|
|
PurchaseViewModel? Insert(PurchaseBindingModel model);
|
|
|
|
|
PurchaseViewModel? Update(PurchaseBindingModel model);
|
|
|
|
|
PurchaseViewModel? Delete(PurchaseBindingModel model);
|
|
|
|
|
|
|
|
|
|
List<PaymentViewModel> GetPaymentsFromPurchaseAndOperation(PurchaseSearchModel modelPurchase, OperationSearchModel modelOperation);
|
2024-04-28 20:20:37 +04:00
|
|
|
|
}
|
|
|
|
|
}
|