46 lines
1.4 KiB
C#
46 lines
1.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using CandyHouseBase.DataModels;
|
|
using CandyHouseBase.Enums;
|
|
using CandyHouseBase.Interfaces.BusinessLogicsContracts;
|
|
using CandyHouseBase.Interfaces.StoragesContracts;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace CandyHouseBase.Implementations
|
|
{
|
|
internal class OrderBusinessLogicContract(
|
|
IOrderStorageContact orderStorageContact,
|
|
IPekarStorageContact pekarStorageContact,
|
|
IProductStorageContact productStorageContact,
|
|
ILogger logger)
|
|
: IOrderBusinessLogicContact
|
|
{
|
|
private readonly IOrderStorageContact _orderStorageContact = orderStorageContact;
|
|
private readonly IPekarStorageContact _pekarStorageContact = pekarStorageContact;
|
|
private readonly IProductStorageContact _productStorageContact = productStorageContact;
|
|
private readonly ILogger _logger = logger;
|
|
|
|
public List<OrderDataModel> GetAllOrders()
|
|
{
|
|
return new List<OrderDataModel>();
|
|
}
|
|
|
|
public OrderDataModel GetOrderByData(string data)
|
|
{
|
|
return new OrderDataModel("", "", new DateTime(),
|
|
100, 100m, "", "", StatusType.Cancelled);
|
|
}
|
|
|
|
public void InsertOrder(OrderDataModel order)
|
|
{
|
|
}
|
|
|
|
public void UpdateOrder(OrderDataModel order)
|
|
{
|
|
}
|
|
|
|
public void DeleteOrder(string id)
|
|
{
|
|
}
|
|
}
|
|
} |