Merge branch 'Worker_Raspaev' into Storekeeper
This commit is contained in:
commit
34849c0377
@ -30,6 +30,19 @@ namespace HardwareShopContracts.BusinessLogicsContracts
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public List<PurchaseViewModel>? ReadOrderList(PurchaseSearchModel model)
|
||||||
|
{
|
||||||
|
_logger.LogInformation("ReadOrderList. Id:{Id}", model.Id);
|
||||||
|
var list = _purchaseStorage.GetReportFilteredList(model);
|
||||||
|
if (list == null)
|
||||||
|
{
|
||||||
|
_logger.LogWarning("ReadOrderList return null list");
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
_logger.LogInformation("ReadOrderList. Count:{Count}", list.Count);
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
public PurchaseViewModel? ReadElement(PurchaseSearchModel model)
|
public PurchaseViewModel? ReadElement(PurchaseSearchModel model)
|
||||||
{
|
{
|
||||||
if (model == null)
|
if (model == null)
|
||||||
|
@ -7,6 +7,7 @@ namespace HardwareShopContracts.BusinessLogicsContracts
|
|||||||
public interface IPurchaseLogic
|
public interface IPurchaseLogic
|
||||||
{
|
{
|
||||||
List<PurchaseViewModel>? ReadList(PurchaseSearchModel? model);
|
List<PurchaseViewModel>? ReadList(PurchaseSearchModel? model);
|
||||||
|
List<PurchaseViewModel>? ReadOrderList(PurchaseSearchModel model);
|
||||||
PurchaseViewModel? ReadElement(PurchaseSearchModel model);
|
PurchaseViewModel? ReadElement(PurchaseSearchModel model);
|
||||||
bool Create(PurchaseBindingModel model);
|
bool Create(PurchaseBindingModel model);
|
||||||
bool Update(PurchaseBindingModel model);
|
bool Update(PurchaseBindingModel model);
|
||||||
|
@ -8,6 +8,7 @@ namespace HardwareShopContracts.StoragesContracts
|
|||||||
{
|
{
|
||||||
List<PurchaseViewModel> GetFullList();
|
List<PurchaseViewModel> GetFullList();
|
||||||
List<PurchaseViewModel> GetFilteredList(PurchaseSearchModel model);
|
List<PurchaseViewModel> GetFilteredList(PurchaseSearchModel model);
|
||||||
|
List<PurchaseViewModel> GetReportFilteredList(PurchaseSearchModel model);
|
||||||
PurchaseViewModel? GetElement(PurchaseSearchModel model);
|
PurchaseViewModel? GetElement(PurchaseSearchModel model);
|
||||||
PurchaseViewModel? Insert(PurchaseBindingModel model);
|
PurchaseViewModel? Insert(PurchaseBindingModel model);
|
||||||
PurchaseViewModel? Update(PurchaseBindingModel model);
|
PurchaseViewModel? Update(PurchaseBindingModel model);
|
||||||
|
Loading…
Reference in New Issue
Block a user