diff --git a/SushiBarContracts/BindingModel/ImplementerBindingModel.cs b/SushiBarContracts/BindingModel/ImplementerBindingModel.cs new file mode 100644 index 0000000..77524ff --- /dev/null +++ b/SushiBarContracts/BindingModel/ImplementerBindingModel.cs @@ -0,0 +1,18 @@ +using SushiBarDataModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarContracts.BindingModel +{ + public class ImplementerBindingModel : IImplementerModel + { + public int Id { get; set; } + public string ImplementerFIO { get; set; } = string.Empty; + public string Password { get; set; } = string.Empty; + public int WorkExperience { get; set; } + public int Qualification { get; set; } + } +} diff --git a/SushiBarContracts/SearchModel/ImplementerSearchModel.cs b/SushiBarContracts/SearchModel/ImplementerSearchModel.cs new file mode 100644 index 0000000..aa23154 --- /dev/null +++ b/SushiBarContracts/SearchModel/ImplementerSearchModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarContracts.SearchModel +{ + public class ImplementerSearchModel + { + public int? Id { get; set; } + public string? ImplementerFIO { get; set; } + public string? Password { get; set; } + } +} diff --git a/SushiBarContracts/ViewModels/ClientViewModel.cs b/SushiBarContracts/ViewModels/ClientViewModel.cs index c0968f7..f034cbd 100644 --- a/SushiBarContracts/ViewModels/ClientViewModel.cs +++ b/SushiBarContracts/ViewModels/ClientViewModel.cs @@ -15,7 +15,7 @@ namespace SushiBarContracts.ViewModels [DisplayName("ФИО Клиента")] public string ClientFIO { get; set; } = string.Empty; - [DisplayName("Логин (эл. почтаы)")] + [DisplayName("Логин (эл. почта)")] public string Email { get; set; } = string.Empty; [DisplayName("Пароль")] diff --git a/SushiBarContracts/ViewModels/ImplementerViewModel.cs b/SushiBarContracts/ViewModels/ImplementerViewModel.cs new file mode 100644 index 0000000..b150df0 --- /dev/null +++ b/SushiBarContracts/ViewModels/ImplementerViewModel.cs @@ -0,0 +1,26 @@ +using SushiBarDataModels; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarContracts.ViewModels +{ + public class ImplementerViewModel : IImplementerModel + { + public int Id { get; set; } + [DisplayName("ИсполнительФИО")] + public string ImplementerFIO { get; set; } = string.Empty; + + [DisplayName("Пароль")] + public string Password { get; set; } = string.Empty; + + [DisplayName("Опыт работы")] + public int WorkExperience { get; set; } + + [DisplayName("Квалификация")] + public int Qualification { get; set; } + } +} diff --git a/SushiBarDataModels/IImplementerModel.cs b/SushiBarDataModels/IImplementerModel.cs new file mode 100644 index 0000000..f837d92 --- /dev/null +++ b/SushiBarDataModels/IImplementerModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SushiBarDataModels +{ + public interface IImplementerModel : IId + { + string ImplementerFIO { get; } + string Password { get; } + int WorkExperience { get; } + int Qualification { get; } + } +} \ No newline at end of file