реализация StoragesContracts

This commit is contained in:
Альфия Тукаева 2023-04-03 17:28:40 +03:00
parent 6cb34fba44
commit 5ad2aa2afa
6 changed files with 105 additions and 1 deletions

View File

@ -0,0 +1,20 @@
using SchoolContracts.BindingModel;
using SchoolContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.StoragesContracts
{
public interface ICircleStorage
{
List<CircleViewModel> GetFullList();
List<CircleViewModel> GetFilteredList(CircleBindingModel model);
CircleViewModel GetElement(CircleBindingModel model);
CircleViewModel? Insert(CircleBindingModel model);
CircleViewModel? Update(CircleBindingModel model);
CircleViewModel? Delete(CircleBindingModel model);
}
}

View File

@ -0,0 +1,20 @@
using SchoolContracts.BindingModel;
using SchoolContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.StoragesContracts
{
public interface IClientStorage
{
List<ClientViewModel> GetFullList();
List<ClientViewModel> GetFilteredList(ClientBindingModel model);
ClientViewModel GetElement(ClientBindingModel model);
ClientViewModel? Insert(ClientBindingModel model);
ClientViewModel? Update(ClientBindingModel model);
ClientViewModel? Delete(ClientBindingModel model);
}
}

View File

@ -0,0 +1,21 @@
using SchoolContracts.BindingModel;
using SchoolContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.StoragesContracts
{
public interface IEmployeeStorage
{
List<EmployeeViewModel> GetFullList();
List<EmployeeViewModel> GetFilteredList(EmployeeBindingModel model);
EmployeeViewModel GetElement(EmployeeBindingModel model);
EmployeeViewModel? Insert(EmployeeBindingModel model);
EmployeeViewModel? Update(EmployeeBindingModel model);
EmployeeViewModel? Delete(EmployeeBindingModel model);
}
}

View File

@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SchoolContracts.BindingModel;
using SchoolContracts.ViewModels;
namespace SchoolContracts.StoragesContracts
{
public interface ILessonStorage
{
List<LessonViewModel> GetFullList();
List<LessonViewModel> GetFilteredList(LessonBindingModel model);
LessonViewModel GetElement(LessonBindingModel model);
LessonViewModel? Insert(LessonBindingModel model);
LessonViewModel? Update(LessonBindingModel model);
LessonViewModel? Delete(LessonBindingModel model);
}
}

View File

@ -0,0 +1,23 @@
using SchoolContracts.BindingModel;
using SchoolContracts.BindingModels;
using SchoolContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SchoolContracts.StoragesContracts
{
public interface IPaymentStorage
{
List<PaymentViewModel> GetFullList();
List<PaymentViewModel> GetFilteredList(PaymentBindingModel model);
PaymentViewModel GetElement(PaymentBindingModel model);
PaymentViewModel? Insert(PaymentBindingModel model);
PaymentViewModel? Update(PaymentBindingModel model);
PaymentViewModel GetElementFirstLast(PaymentDateBindingModel model);
PaymentViewModel? Delete(PaymentBindingModel model);
}
}

View File

@ -8,7 +8,7 @@ namespace SchoolContracts.ViewModels
{ {
public class ReportCircleLessonViewModel public class ReportCircleLessonViewModel
{ {
public DateTime? CircleDate { get; set; } public DateTime? StartDate { get; set; }
public List<string> Lessons { get; set; } public List<string> Lessons { get; set; }
public int TotalCount { get; set; } public int TotalCount { get; set; }
} }