10ая минута видео

This commit is contained in:
Tonb73 2025-02-18 11:43:34 +03:00
parent e24689ed30
commit 7fd73da402
6 changed files with 21 additions and 11 deletions

View File

@ -1,5 +1,7 @@
using PapaCarloContracts.BusinessLogicContracts; using Microsoft.Extensions.Logging;
using PapaCarloContracts.BusinessLogicContracts;
using PapaCarloContracts.DataModels; using PapaCarloContracts.DataModels;
using PapaCarloContracts.StoragesContracts;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -8,7 +10,7 @@ using System.Threading.Tasks;
namespace PapaCarloBusinessLogic.Implementations namespace PapaCarloBusinessLogic.Implementations
{ {
internal class CuttingBusinessLogicContract : ICuttingBusinessLogicContract internal class CuttingBusinessLogicContract(ICuttingStorageContract cuttingStorageContract, ILogger logger) : ICuttingBusinessLogicContract
{ {
public void CancelCutting(string id) public void CancelCutting(string id)
{ {

View File

@ -1,5 +1,7 @@
using PapaCarloContracts.BuisinessLogicsContracts; using Microsoft.Extensions.Logging;
using PapaCarloContracts.BuisinessLogicsContracts;
using PapaCarloContracts.DataModels; using PapaCarloContracts.DataModels;
using PapaCarloContracts.StoragesContracts;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -8,7 +10,7 @@ using System.Threading.Tasks;
namespace PapaCarloBusinessLogic.Implementations; namespace PapaCarloBusinessLogic.Implementations;
internal class PostBusinessLogicContract : IPostBusinessLogicContract internal class PostBusinessLogicContract(IPostStorageContract postStorageContract, ILogger logger) : IPostBusinessLogicContract
{ {
public void DeletePost(string id) public void DeletePost(string id)
{ {

View File

@ -1,5 +1,7 @@
using PapaCarloContracts.BusinessLogicContracts; using Microsoft.Extensions.Logging;
using PapaCarloContracts.BusinessLogicContracts;
using PapaCarloContracts.DataModels; using PapaCarloContracts.DataModels;
using PapaCarloContracts.StoragesContracts;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -8,7 +10,7 @@ using System.Threading.Tasks;
namespace PapaCarloBusinessLogic.Implementations; namespace PapaCarloBusinessLogic.Implementations;
internal class ProductBusinessLogicContract : IProductBusinessLogicContract internal class ProductBusinessLogicContract(IProductStorageContract productStorageContract, ILogger logger) : IProductBusinessLogicContract
{ {
public void DeleteProduct(string id) public void DeleteProduct(string id)
{ {

View File

@ -1,5 +1,7 @@
using PapaCarloContracts.BusinessLogicContracts; using Microsoft.Extensions.Logging;
using PapaCarloContracts.BusinessLogicContracts;
using PapaCarloContracts.DataModels; using PapaCarloContracts.DataModels;
using PapaCarloContracts.StoragesContracts;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -8,7 +10,7 @@ using System.Threading.Tasks;
namespace PapaCarloBusinessLogic.Implementations; namespace PapaCarloBusinessLogic.Implementations;
internal class SalaryBusinessLogicContract : ISalaryBusinessLogicContract internal class SalaryBusinessLogicContract(ISalaryStorageContract salaryStorageContract, ILogger logger) : ISalaryBusinessLogicContract
{ {
public void CalculateSalaryByMounth(DateTime date) public void CalculateSalaryByMounth(DateTime date)
{ {

View File

@ -1,5 +1,7 @@
using PapaCarloContracts.BusinessLogicContracts; using Microsoft.Extensions.Logging;
using PapaCarloContracts.BusinessLogicContracts;
using PapaCarloContracts.DataModels; using PapaCarloContracts.DataModels;
using PapaCarloContracts.StoragesContracts;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
@ -8,7 +10,7 @@ using System.Threading.Tasks;
namespace PapaCarloBusinessLogic.Implementations; namespace PapaCarloBusinessLogic.Implementations;
internal class WorkerBusinessLogicContract : IWorkerBusinessLogicContract internal class WorkerBusinessLogicContract(IWorkerStorageContract workerStorageContract, ILogger logger) : IWorkerBusinessLogicContract
{ {
public void DeleteWorker(string id) public void DeleteWorker(string id)
{ {

View File

@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace PapaCarloContracts.StoragesContracts; namespace PapaCarloContracts.StoragesContracts;
public interface ISaleStorageContract public interface ICuttingStorageContract
{ {
List<CuttingDataModel> GetList(DateTime? startDate = null, DateTime? endDate = List<CuttingDataModel> GetList(DateTime? startDate = null, DateTime? endDate =
null, string? workerId = null, string? blankId = null, string? productId = null); null, string? workerId = null, string? blankId = null, string? productId = null);