From 24e94a520fdab1be689e370410a35a6a5c0666e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=B8=D0=BD=D0=B0=20=D0=A7=D1=83=D0=B1?= =?UTF-8?q?=D1=8B=D0=BA=D0=B8=D0=BD=D0=B0?= Date: Sat, 4 May 2024 15:51:52 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BB=D0=B0=D0=B1=D0=B0=206=20=D0=BD=D0=B0?= =?UTF-8?q?=D1=87=D0=B0=D0=BB=D0=BE=20=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BindingModels/ImplementerBindingModel.cs | 18 +++++++++++++++++ .../IImplementerLogic.cs | 18 +++++++++++++++++ .../SearchModels/ImplementerSearchModel.cs | 15 ++++++++++++++ .../StoragesContracts/IImplementerStorage.cs | 20 +++++++++++++++++++ .../ViewModels/ImplementerViewModel.cs | 12 +++++++++++ .../Models/IImplementerModel.cs | 16 +++++++++++++++ 6 files changed, 99 insertions(+) create mode 100644 Confectionery/ConfectionaryContracts/BindingModels/ImplementerBindingModel.cs create mode 100644 Confectionery/ConfectionaryContracts/BusinessLogicsContracts/IImplementerLogic.cs create mode 100644 Confectionery/ConfectionaryContracts/SearchModels/ImplementerSearchModel.cs create mode 100644 Confectionery/ConfectionaryContracts/StoragesContracts/IImplementerStorage.cs create mode 100644 Confectionery/ConfectionaryContracts/ViewModels/ImplementerViewModel.cs create mode 100644 Confectionery/ConfectionaryDataModels/Models/IImplementerModel.cs diff --git a/Confectionery/ConfectionaryContracts/BindingModels/ImplementerBindingModel.cs b/Confectionery/ConfectionaryContracts/BindingModels/ImplementerBindingModel.cs new file mode 100644 index 0000000..b8afa19 --- /dev/null +++ b/Confectionery/ConfectionaryContracts/BindingModels/ImplementerBindingModel.cs @@ -0,0 +1,18 @@ +using ConfectioneryDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.BindingModels +{ + 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/Confectionery/ConfectionaryContracts/BusinessLogicsContracts/IImplementerLogic.cs b/Confectionery/ConfectionaryContracts/BusinessLogicsContracts/IImplementerLogic.cs new file mode 100644 index 0000000..183ac84 --- /dev/null +++ b/Confectionery/ConfectionaryContracts/BusinessLogicsContracts/IImplementerLogic.cs @@ -0,0 +1,18 @@ +using ConfectioneryContracts.BindingModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.BusinessLogicsContracts +{ + public interface IImplementerLogic + { + List? ReadList(ImplementerSearchModel? model); + ImplementerViewModel? ReadElement(ImplementerSearchModel model); + bool Create(ImplementerBindingModel model); + bool Update(ImplementerBindingModel model); + bool Delete(ImplementerBindingModel model); + } +} diff --git a/Confectionery/ConfectionaryContracts/SearchModels/ImplementerSearchModel.cs b/Confectionery/ConfectionaryContracts/SearchModels/ImplementerSearchModel.cs new file mode 100644 index 0000000..3b73401 --- /dev/null +++ b/Confectionery/ConfectionaryContracts/SearchModels/ImplementerSearchModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.SearchModels +{ + public class ImplementerSearchModel + { + public int? Id { get; set; } + public string? ImplementerFIO { get; set; } + public string? Password { get; set; } + } +} diff --git a/Confectionery/ConfectionaryContracts/StoragesContracts/IImplementerStorage.cs b/Confectionery/ConfectionaryContracts/StoragesContracts/IImplementerStorage.cs new file mode 100644 index 0000000..020c9de --- /dev/null +++ b/Confectionery/ConfectionaryContracts/StoragesContracts/IImplementerStorage.cs @@ -0,0 +1,20 @@ +using ConfectioneryContracts.BindingModels; +using ConfectioneryContracts.SearchModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.StoragesContracts +{ + public class IImplementerStorage + { + List GetFullList(); + List GetFilteredList(ImplementerSearchModel model); + ImplementerViewModel? GetElement(ImplementerSearchModel model); + ImplementerViewModel? Insert(ImplementerBindingModel model); + ImplementerViewModel? Update(ImplementerBindingModel model); + ImplementerViewModel? Delete(ImplementerBindingModel model); + } +} diff --git a/Confectionery/ConfectionaryContracts/ViewModels/ImplementerViewModel.cs b/Confectionery/ConfectionaryContracts/ViewModels/ImplementerViewModel.cs new file mode 100644 index 0000000..dfe08fe --- /dev/null +++ b/Confectionery/ConfectionaryContracts/ViewModels/ImplementerViewModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.ViewModels +{ + public class ImplementerViewModel + { + } +} diff --git a/Confectionery/ConfectionaryDataModels/Models/IImplementerModel.cs b/Confectionery/ConfectionaryDataModels/Models/IImplementerModel.cs new file mode 100644 index 0000000..1258e44 --- /dev/null +++ b/Confectionery/ConfectionaryDataModels/Models/IImplementerModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryDataModels.Models +{ + public interface IImplementerModel : IId + { + string ImplementerFIO { get; } + string Password { get; } + int WorkExperience { get; } + int Qualification { get; } + } +}