2025-02-26 23:49:16 +04:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2025-02-27 02:25:39 +04:00
|
|
|
using System.Text.Json;
|
2025-02-26 23:49:16 +04:00
|
|
|
using CandyHouseBase.DataModels;
|
2025-02-27 02:25:39 +04:00
|
|
|
using CandyHouseBase.Exceptions;
|
|
|
|
using CandyHouseBase.Extensions;
|
2025-02-26 23:49:16 +04:00
|
|
|
using CandyHouseBase.Interfaces.BusinessLogicsContracts;
|
|
|
|
using CandyHouseBase.Interfaces.StoragesContracts;
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
|
|
|
namespace CandyHouseBase.Implementations
|
|
|
|
{
|
|
|
|
internal class SalaryBusinessLogicContract(
|
|
|
|
ISalaryStorageContact salaryStorageContact,
|
|
|
|
IPekarStorageContact pekarStorageContact,
|
|
|
|
ILogger logger)
|
2025-02-27 02:25:39 +04:00
|
|
|
: ISalaryBusinessLogicContact
|
2025-02-26 23:49:16 +04:00
|
|
|
{
|
|
|
|
private readonly ISalaryStorageContact _salaryStorageContact = salaryStorageContact;
|
|
|
|
private readonly IPekarStorageContact _pekarStorageContact = pekarStorageContact;
|
|
|
|
private readonly ILogger _logger = logger;
|
|
|
|
|
2025-02-27 02:25:39 +04:00
|
|
|
public List<SalaryDataModel> GetAllSalaries()
|
2025-02-26 23:49:16 +04:00
|
|
|
{
|
|
|
|
return new List<SalaryDataModel>();
|
|
|
|
}
|
|
|
|
|
2025-02-27 02:25:39 +04:00
|
|
|
public SalaryDataModel GetSalaryByData(string data)
|
2025-02-26 23:49:16 +04:00
|
|
|
{
|
|
|
|
return new SalaryDataModel("", "", new DateTime(), 0, 0, 0);
|
|
|
|
}
|
|
|
|
|
2025-02-27 02:25:39 +04:00
|
|
|
public void InsertSalary(SalaryDataModel salary)
|
2025-02-26 23:49:16 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2025-02-27 02:25:39 +04:00
|
|
|
public void UpdateSalary(SalaryDataModel salary)
|
2025-02-26 23:49:16 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2025-02-27 02:25:39 +04:00
|
|
|
public void DeleteSalary(string id)
|
2025-02-26 23:49:16 +04:00
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|