Исполнитель!

This commit is contained in:
Софья Якобчук 2024-05-01 01:09:31 +04:00
parent a2945ec750
commit 05b2a70ea8
6 changed files with 80 additions and 0 deletions

View File

@ -0,0 +1,9 @@
namespace LawCompanyDataModels.Models
{
public interface IExecutorModel : IId
{
string FIO { get; }
string Email { get; }
string Password { get; }
}
}

View File

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

View File

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

View File

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

View File

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

View File

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