2025-02-23 23:23:11 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
2025-02-24 17:25:59 +04:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
2025-02-23 23:23:11 +04:00
|
|
|
|
using PuferFishContracts.BusinessLogicsContracts;
|
|
|
|
|
using PuferFishContracts.DataModels;
|
|
|
|
|
using PuferFishContracts.StoragesContracts;
|
|
|
|
|
|
|
|
|
|
namespace PuferFishBusinessLogic.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 [];
|
|
|
|
|
}
|
|
|
|
|
public List<SaleDataModel> GetAllSalesByWorkerByPeriod(string workerId,
|
|
|
|
|
DateTime fromDate, DateTime toDate)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
public List<SaleDataModel> GetAllSalesByBuyerByPeriod(string? buyerId,
|
|
|
|
|
DateTime fromDate, DateTime toDate)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
public List<SaleDataModel> GetAllSalesByProductByPeriod(string productId,
|
|
|
|
|
DateTime fromDate, DateTime toDate)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
public SaleDataModel GetSaleByData(string data)
|
|
|
|
|
{
|
|
|
|
|
return new("", "", "", 0, 0, false, []);
|
|
|
|
|
}
|
|
|
|
|
public void InsertSale(SaleDataModel saleDataModel)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
public void CancelSale(string id)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|