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