+ехекьютор

This commit is contained in:
Галина Федоренко 2024-04-19 21:23:08 +04:00
parent 36e63afb18
commit 9793f0e6c9
6 changed files with 80 additions and 0 deletions

View File

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

View File

@ -0,0 +1,14 @@
using LawFimDataModels.Models;
namespace LawFirmContracts.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 LawFirmContracts.BindingModels;
using LawFirmContracts.SearchModels;
using LawFirmContracts.ViewModels;
namespace LawFirmContracts.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 LawFirmContracts.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 LawFirmContracts.BindingModels;
using LawFirmContracts.SearchModels;
using LawFirmContracts.ViewModels;
namespace LawFirmContracts.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 LawFimDataModels.Models;
using System.ComponentModel;
namespace LawFirmContracts.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;
}
}