2023-02-20 19:09:30 +04:00
|
|
|
|
using PlumbingRepairContracts.BindingModels;
|
|
|
|
|
using PlumbingRepairContracts.SearchModels;
|
|
|
|
|
using PlumbingRepairContracts.ViewModels;
|
|
|
|
|
using PlumbingRepairDataModels.Models;
|
|
|
|
|
|
|
|
|
|
namespace PlumbingRepairContracts.BusinessLogicsContracts
|
|
|
|
|
{
|
|
|
|
|
public interface IStoreLogic
|
|
|
|
|
{
|
|
|
|
|
List<StoreViewModel>? ReadList(StoreSearchModel? model);
|
|
|
|
|
StoreViewModel? ReadElement(StoreSearchModel model);
|
|
|
|
|
bool Create(StoreBindingModel model);
|
|
|
|
|
bool Update(StoreBindingModel model);
|
|
|
|
|
bool Delete(StoreBindingModel model);
|
2023-02-21 14:27:14 +04:00
|
|
|
|
bool AddWork(StoreSearchModel model, IWorkModel work, int quantity);
|
2023-03-28 22:01:07 +04:00
|
|
|
|
bool AddWork(IWorkModel package, int quantity);
|
|
|
|
|
bool SellWork(IWorkModel package, int quantity);
|
2023-02-20 19:09:30 +04:00
|
|
|
|
}
|
|
|
|
|
}
|