49 lines
1.4 KiB
C#
49 lines
1.4 KiB
C#
using Microsoft.Extensions.Logging;
|
|
using Squirrel.BusinessLogicsContracts;
|
|
using Squirrel.DataModels;
|
|
using Squirrel.Enums;
|
|
using Squirrel.StoragesContracts;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace SquirelBusinessLogic.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> GetAllSalesByGuestByPeriod(string? guestId, DateTime fromDate, DateTime toDate)
|
|
{
|
|
return [];
|
|
}
|
|
public List<SaleDataModel> GetAllSalesByProductByPeriod(string productId, DateTime fromDate, DateTime toDate)
|
|
{
|
|
return [];
|
|
}
|
|
public SaleDataModel GetSaleByData(string data)
|
|
{
|
|
return new("", "", "", 0, DiscountType.None, 0, false, []);
|
|
}
|
|
public void InsertSale(SaleDataModel saleDataModel)
|
|
{
|
|
}
|
|
|
|
public void CancelSale(string id)
|
|
{
|
|
}
|
|
|
|
|
|
}
|