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 PointsBusinessLogicContract(IPointsStorageContract pointsStorageContract, ISaleStorageContract saleStorageContract, IPostStorageContract
|
|
|
|
|
postStorageContract, IBuyerStorageContract buyerStorageContract, ILogger logger) : IPointsBusinessLogicContract
|
|
|
|
|
{
|
|
|
|
|
private readonly ILogger _logger = logger;
|
|
|
|
|
private readonly IPointsStorageContract _pointsStorageContract = pointsStorageContract;
|
|
|
|
|
private readonly ISaleStorageContract _saleStorageContract = saleStorageContract;
|
|
|
|
|
private readonly IPostStorageContract _postStorageContract = postStorageContract;
|
|
|
|
|
private readonly IBuyerStorageContract _buyerStorageContract = buyerStorageContract;
|
|
|
|
|
public List<PointsDataModel> GetAllPointsByPeriod(DateTime fromDate,
|
|
|
|
|
DateTime toDate)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
public List<PointsDataModel> GetAllPointsByPeriodByBuyer(DateTime fromDate, DateTime toDate, string buyerId)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
public void CalculatePointsByMounth(DateTime date)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|