CourseWork_Bank/Bank/BankContracts/StoragesContracts/IPurchaseStorage.cs

19 lines
720 B
C#
Raw Normal View History

2024-04-28 21:34:43 +04:00
using BankContracts.BindingModels;
using BankContracts.SearchModels;
using BankContracts.ViewModels;
namespace BankContracts.StoragesContracts
{
2024-04-28 21:34:43 +04:00
public interface IPurchaseStorage
{
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);
}
}