ISEbd-21_Tukaeva_A_A_School/School/SchoolBusinessLogic/BusinessLogics/PaymentLogic.cs

57 lines
1.3 KiB
C#
Raw Normal View History

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<PaymentLogic> 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<PaymentViewModel>? 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);
}
}
}