using Microsoft.Extensions.Logging; using SchoolContracts.BindingModel; using SchoolContracts.BusinessLogicsContracts; using SchoolContracts.SearchModel; using SchoolContracts.StoragesContracts; using SchoolContracts.ViewModels; namespace SchoolBusinessLogic.BusinessLogics { public class PaymentLogic : IPaymentLogic { private readonly ILogger _logger; private readonly IPaymentStorage _paymentStorage; public PaymentLogic(ILogger logger, IPaymentStorage paymentStorage) { _logger = logger; _paymentStorage = paymentStorage; } public bool Create(PaymentBindingModel model) { throw new NotImplementedException(); } public bool Delete(PaymentBindingModel model) { throw new NotImplementedException(); } public PaymentViewModel? ReadElement(PaymentSearchModel model) { throw new NotImplementedException(); } public List? ReadList(PaymentSearchModel? model) { throw new NotImplementedException(); } public bool Update(PaymentBindingModel model) { throw new NotImplementedException(); } private void CheckModel(LessonBindingModel model, bool withParams = true) { if (model == null) { throw new ArgumentNullException(nameof(model)); } if (!withParams) { return; } _logger.LogInformation("Lesson. Id: {Id}", model.Id); } } }