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; } }