Исполнитель!
This commit is contained in:
parent
a2945ec750
commit
05b2a70ea8
9
LawCompany/LawCompany/Models/IExecutorModel.cs
Normal file
9
LawCompany/LawCompany/Models/IExecutorModel.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface IExecutorModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using LawCompanyDataModels.Models;
|
||||
|
||||
namespace LawCompanyContracts.BindingModels
|
||||
{
|
||||
public class ExecutorBindingModel : IExecutorModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string FIO { get; set; } = string.Empty;
|
||||
|
||||
public string Email { get; set; } = string.Empty;
|
||||
|
||||
public string Password { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using LawCompanyContracts.BindingModels;
|
||||
using LawCompanyContracts.SearchModels;
|
||||
using LawCompanyContracts.ViewModels;
|
||||
|
||||
namespace LawCompanyContracts.BusinessLogicContracts
|
||||
{
|
||||
public interface IExecutorLogic
|
||||
{
|
||||
List<ExecutorViewModel>? ReadList(ExecutorSearchModel? model);
|
||||
ExecutorViewModel? ReadElement(ExecutorSearchModel model);
|
||||
bool Create(ExecutorBindingModel model);
|
||||
bool Update(ExecutorBindingModel model);
|
||||
bool Delete(ExecutorBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
namespace LawCompanyContracts.SearchModels
|
||||
{
|
||||
public class ExecutorSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? FIO { get; set; }
|
||||
public string? Email { get; set; }
|
||||
public string? Password { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using LawCompanyContracts.BindingModels;
|
||||
using LawCompanyContracts.SearchModels;
|
||||
using LawCompanyContracts.ViewModels;
|
||||
|
||||
namespace LawCompanyContracts.StoragesContracts
|
||||
{
|
||||
public interface IExecutorStorage
|
||||
{
|
||||
List<ExecutorViewModel> GetFullList();
|
||||
List<ExecutorViewModel> GetFilteredList(ExecutorSearchModel model);
|
||||
ExecutorViewModel? GetElement(ExecutorSearchModel model);
|
||||
ExecutorViewModel? Insert(ExecutorBindingModel model);
|
||||
ExecutorViewModel? Update(ExecutorBindingModel model);
|
||||
ExecutorViewModel? Delete(ExecutorBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
using LawCompanyDataModels.Models;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace LawCompanyContracts.ViewModels
|
||||
{
|
||||
public class ExecutorViewModel : IExecutorModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
[DisplayName("Имя исполнителя")]
|
||||
public string FIO { get; set; } = string.Empty;
|
||||
[DisplayName("E-mail исполнителя")]
|
||||
public string Email { get; set; } = string.Empty;
|
||||
[DisplayName("Пароль исполнителя")]
|
||||
public string Password { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user