+ехекьютор
This commit is contained in:
parent
36e63afb18
commit
9793f0e6c9
9
LawFim/LawFimDataModels/Models/IExecutorModel.cs
Normal file
9
LawFim/LawFimDataModels/Models/IExecutorModel.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace LawFimDataModels.Models
|
||||
{
|
||||
public interface IExecutorModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
10
LawFim/LawFirmContracts/SearchModels/ExecutorSearchModel.cs
Normal file
10
LawFim/LawFirmContracts/SearchModels/ExecutorSearchModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -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);
|
||||
}
|
||||
}
|
16
LawFim/LawFirmContracts/ViewModels/ExecutorViewModel.cs
Normal file
16
LawFim/LawFirmContracts/ViewModels/ExecutorViewModel.cs
Normal 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;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user