From 5ad2aa2afada9cfd99c5c36c92360019d7b1ef70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D1=8C=D1=84=D0=B8=D1=8F=20=D0=A2=D1=83=D0=BA?= =?UTF-8?q?=D0=B0=D0=B5=D0=B2=D0=B0?= Date: Mon, 3 Apr 2023 17:28:40 +0300 Subject: [PATCH] =?UTF-8?q?=D1=80=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20StoragesContracts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StoragesContracts/ICircleStorage.cs | 20 ++++++++++++++++ .../StoragesContracts/IClientStorage.cs | 20 ++++++++++++++++ .../StoragesContracts/IEmployeeStorage.cs | 21 +++++++++++++++++ .../StoragesContracts/ILessonStorage.cs | 20 ++++++++++++++++ .../StoragesContracts/IPaymentStorage.cs | 23 +++++++++++++++++++ .../ViewModels/ReportCircleLessonViewModel.cs | 2 +- 6 files changed, 105 insertions(+), 1 deletion(-) create mode 100644 School/SchoolContracts/StoragesContracts/ICircleStorage.cs create mode 100644 School/SchoolContracts/StoragesContracts/IClientStorage.cs create mode 100644 School/SchoolContracts/StoragesContracts/IEmployeeStorage.cs create mode 100644 School/SchoolContracts/StoragesContracts/ILessonStorage.cs create mode 100644 School/SchoolContracts/StoragesContracts/IPaymentStorage.cs diff --git a/School/SchoolContracts/StoragesContracts/ICircleStorage.cs b/School/SchoolContracts/StoragesContracts/ICircleStorage.cs new file mode 100644 index 0000000..989f8b1 --- /dev/null +++ b/School/SchoolContracts/StoragesContracts/ICircleStorage.cs @@ -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 GetFullList(); + List GetFilteredList(CircleBindingModel model); + CircleViewModel GetElement(CircleBindingModel model); + CircleViewModel? Insert(CircleBindingModel model); + CircleViewModel? Update(CircleBindingModel model); + CircleViewModel? Delete(CircleBindingModel model); + } +} diff --git a/School/SchoolContracts/StoragesContracts/IClientStorage.cs b/School/SchoolContracts/StoragesContracts/IClientStorage.cs new file mode 100644 index 0000000..18e27c4 --- /dev/null +++ b/School/SchoolContracts/StoragesContracts/IClientStorage.cs @@ -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 GetFullList(); + List GetFilteredList(ClientBindingModel model); + ClientViewModel GetElement(ClientBindingModel model); + ClientViewModel? Insert(ClientBindingModel model); + ClientViewModel? Update(ClientBindingModel model); + ClientViewModel? Delete(ClientBindingModel model); + } +} diff --git a/School/SchoolContracts/StoragesContracts/IEmployeeStorage.cs b/School/SchoolContracts/StoragesContracts/IEmployeeStorage.cs new file mode 100644 index 0000000..0cb0857 --- /dev/null +++ b/School/SchoolContracts/StoragesContracts/IEmployeeStorage.cs @@ -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 GetFullList(); + List GetFilteredList(EmployeeBindingModel model); + EmployeeViewModel GetElement(EmployeeBindingModel model); + EmployeeViewModel? Insert(EmployeeBindingModel model); + EmployeeViewModel? Update(EmployeeBindingModel model); + EmployeeViewModel? Delete(EmployeeBindingModel model); + } + +} diff --git a/School/SchoolContracts/StoragesContracts/ILessonStorage.cs b/School/SchoolContracts/StoragesContracts/ILessonStorage.cs new file mode 100644 index 0000000..35ca7bc --- /dev/null +++ b/School/SchoolContracts/StoragesContracts/ILessonStorage.cs @@ -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 GetFullList(); + List GetFilteredList(LessonBindingModel model); + LessonViewModel GetElement(LessonBindingModel model); + LessonViewModel? Insert(LessonBindingModel model); + LessonViewModel? Update(LessonBindingModel model); + LessonViewModel? Delete(LessonBindingModel model); + } +} diff --git a/School/SchoolContracts/StoragesContracts/IPaymentStorage.cs b/School/SchoolContracts/StoragesContracts/IPaymentStorage.cs new file mode 100644 index 0000000..bbfe3e3 --- /dev/null +++ b/School/SchoolContracts/StoragesContracts/IPaymentStorage.cs @@ -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 GetFullList(); + List GetFilteredList(PaymentBindingModel model); + PaymentViewModel GetElement(PaymentBindingModel model); + PaymentViewModel? Insert(PaymentBindingModel model); + PaymentViewModel? Update(PaymentBindingModel model); + PaymentViewModel GetElementFirstLast(PaymentDateBindingModel model); + PaymentViewModel? Delete(PaymentBindingModel model); + } + +} diff --git a/School/SchoolContracts/ViewModels/ReportCircleLessonViewModel.cs b/School/SchoolContracts/ViewModels/ReportCircleLessonViewModel.cs index 9720f6d..3492d07 100644 --- a/School/SchoolContracts/ViewModels/ReportCircleLessonViewModel.cs +++ b/School/SchoolContracts/ViewModels/ReportCircleLessonViewModel.cs @@ -8,7 +8,7 @@ namespace SchoolContracts.ViewModels { public class ReportCircleLessonViewModel { - public DateTime? CircleDate { get; set; } + public DateTime? StartDate { get; set; } public List Lessons { get; set; } public int TotalCount { get; set; } }