41 lines
1.0 KiB
C#
41 lines
1.0 KiB
C#
using IcecreamVan.BusinessLogicContracts;
|
|
using IcecreamVan.StoragesContracts;
|
|
using IcecreamVan.DataModels;
|
|
using IcecreamVan.Enums;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace BusinessLogic.Implementations;
|
|
|
|
internal class SaleBLC(ISaleContract sc, ILogger logger) : ISaleBLC
|
|
{
|
|
private readonly ILogger _logger = logger;
|
|
private readonly ISaleContract _sc = sc;
|
|
public List<SaleDataModel> GetAllSalesByProductByPeriod(string productId, DateTime fromDate, DateTime toDate)
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public List<SaleDataModel> GetAllSalesByWorkerByPeriod(string workerId, DateTime fromDate, DateTime toDate)
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public List<SaleDataModel> GetAllSalesByPeriod(DateTime fromDate, DateTime toDate)
|
|
{
|
|
return [];
|
|
}
|
|
|
|
public SaleDataModel GetSaleByData(string data)
|
|
{
|
|
return new("", "", 0, DiscountType.None, 0, true, []);
|
|
}
|
|
|
|
public void InsertSale(SaleDataModel saleDataModel)
|
|
{
|
|
}
|
|
|
|
public void CancelSale(string id)
|
|
{
|
|
}
|
|
}
|