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.Enums;
|
|
|
|
|
using PuferFishContracts.StoragesContracts;
|
|
|
|
|
|
|
|
|
|
namespace PuferFishBusinessLogic.Implementations;
|
|
|
|
|
|
|
|
|
|
internal class ProductBusinessLogicContract(IProductStorageContract productStorageContract, ILogger logger) : IProductBusinessLogicContract
|
|
|
|
|
{
|
|
|
|
|
private readonly ILogger _logger = logger;
|
|
|
|
|
private readonly IProductStorageContract _productStorageContract =
|
|
|
|
|
productStorageContract;
|
|
|
|
|
public List<ProductDataModel> GetAllProducts(bool onlyActive)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
public List<ProductDataModel> GetAllProductsByManufacturer(string
|
|
|
|
|
manufacturerId, bool onlyActive = true)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
public List<ProductHistoryDataModel> GetProductHistoryByProduct(string
|
|
|
|
|
productId)
|
|
|
|
|
{
|
|
|
|
|
return [];
|
|
|
|
|
}
|
|
|
|
|
public ProductDataModel GetProductByData(string data)
|
|
|
|
|
{
|
|
|
|
|
return new("", "", ProductType.None, 0, true);
|
|
|
|
|
}
|
|
|
|
|
public void InsertProduct(ProductDataModel productDataModel)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
public void UpdateProduct(ProductDataModel productDataModel)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
public void DeleteProduct(string id)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
}
|