50 lines
1.4 KiB
C#
50 lines
1.4 KiB
C#
using NorthBridgeContract.BusinessLogicsContracts;
|
|
using NorthBridgeContract.DataModels;
|
|
using NorthBridgeContract.Exceptions;
|
|
using NorthBridgeContract.Extensions;
|
|
using NorthBridgeContract.StoragesContracts;
|
|
using Microsoft.Extensions.Logging;
|
|
using System.Text.Json;
|
|
|
|
namespace NorthBridgeBusinessLogic.Implementations;
|
|
|
|
internal class SaleBusinessLogicContract(ISaleStorageContract saleStorageContract, ILogger logger) : ISaleBusinessLogicContract
|
|
{
|
|
private readonly ILogger _logger = logger;
|
|
private readonly ISaleStorageContract _saleStorageContract = saleStorageContract;
|
|
|
|
public List<SaleDataModel> GetAllSalesByPeriod(DateTime fromDate, DateTime toDate)
|
|
{
|
|
return new List<SaleDataModel>();
|
|
}
|
|
|
|
public List<SaleDataModel> GetAllSalesByWorkerByPeriod(string workerId, DateTime fromDate, DateTime toDate)
|
|
{
|
|
return new List<SaleDataModel>();
|
|
}
|
|
|
|
public List<SaleDataModel> GetAllSalesByBuyerByPeriod(string buyerId, DateTime fromDate, DateTime toDate)
|
|
{
|
|
return new List<SaleDataModel>();
|
|
}
|
|
|
|
public List<SaleDataModel> GetAllSalesByProductByPeriod(string productId, DateTime fromDate, DateTime toDate)
|
|
{
|
|
return new List<SaleDataModel>();
|
|
}
|
|
|
|
public SaleDataModel GetSaleByData(string data)
|
|
{
|
|
return new SaleDataModel("", "", "", 0, false, new List<SaleProductDataModel>());
|
|
}
|
|
|
|
public void InsertSale(SaleDataModel saleDataModel)
|
|
{
|
|
|
|
}
|
|
|
|
public void CancelSale(string id)
|
|
{
|
|
|
|
}
|
|
} |