реализация StoragesContracts
This commit is contained in:
parent
6cb34fba44
commit
5ad2aa2afa
20
School/SchoolContracts/StoragesContracts/ICircleStorage.cs
Normal file
20
School/SchoolContracts/StoragesContracts/ICircleStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
20
School/SchoolContracts/StoragesContracts/IClientStorage.cs
Normal file
20
School/SchoolContracts/StoragesContracts/IClientStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
21
School/SchoolContracts/StoragesContracts/IEmployeeStorage.cs
Normal file
21
School/SchoolContracts/StoragesContracts/IEmployeeStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
20
School/SchoolContracts/StoragesContracts/ILessonStorage.cs
Normal file
20
School/SchoolContracts/StoragesContracts/ILessonStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
}
|
23
School/SchoolContracts/StoragesContracts/IPaymentStorage.cs
Normal file
23
School/SchoolContracts/StoragesContracts/IPaymentStorage.cs
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -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; }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user