diff --git a/Hospital/HospitalContracts/BildingModels/DescriptionProcedureBildingModel.cs b/Hospital/HospitalContracts/BindingModels/DescriptionProcedureBindingModel.cs similarity index 78% rename from Hospital/HospitalContracts/BildingModels/DescriptionProcedureBildingModel.cs rename to Hospital/HospitalContracts/BindingModels/DescriptionProcedureBindingModel.cs index 4bc1fd7..419ffa2 100644 --- a/Hospital/HospitalContracts/BildingModels/DescriptionProcedureBildingModel.cs +++ b/Hospital/HospitalContracts/BindingModels/DescriptionProcedureBindingModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace HospitalContracts.BindingModels { - public class DescriptionProcedureBildingModel + public class DescriptionProcedureBindingModel { } } diff --git a/Hospital/HospitalContracts/BildingModels/DiseaseBildingModel.cs b/Hospital/HospitalContracts/BindingModels/DiseaseBildingModel.cs similarity index 100% rename from Hospital/HospitalContracts/BildingModels/DiseaseBildingModel.cs rename to Hospital/HospitalContracts/BindingModels/DiseaseBildingModel.cs diff --git a/Hospital/HospitalContracts/BildingModels/PharmacistBildingModel.cs b/Hospital/HospitalContracts/BindingModels/PharmacistBindingModel.cs similarity index 89% rename from Hospital/HospitalContracts/BildingModels/PharmacistBildingModel.cs rename to Hospital/HospitalContracts/BindingModels/PharmacistBindingModel.cs index e45b32e..cefab94 100644 --- a/Hospital/HospitalContracts/BildingModels/PharmacistBildingModel.cs +++ b/Hospital/HospitalContracts/BindingModels/PharmacistBindingModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace HospitalContracts.BindingModels { - public class PharmacistBildingModel : IPharmacistModel + public class PharmacistBindingModel : IPharmacistModel { public string FIO { get; set; } = string.Empty; public string Login { get; set; } = string.Empty; diff --git a/Hospital/HospitalContracts/BildingModels/ProcedureBildingModel.cs b/Hospital/HospitalContracts/BindingModels/ProcedureBildingModel.cs similarity index 100% rename from Hospital/HospitalContracts/BildingModels/ProcedureBildingModel.cs rename to Hospital/HospitalContracts/BindingModels/ProcedureBildingModel.cs diff --git a/Hospital/HospitalContracts/BusinessLogicContracts/IPharmacistLogic.cs b/Hospital/HospitalContracts/BusinessLogicContracts/IPharmacistLogic.cs new file mode 100644 index 0000000..407ce3a --- /dev/null +++ b/Hospital/HospitalContracts/BusinessLogicContracts/IPharmacistLogic.cs @@ -0,0 +1,20 @@ +using HospitalContracts.BindingModels; +using HospitalContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HospitalContracts.SearchModels; + +namespace HospitalContracts.BusinessLogicContracts +{ + public interface IPharmacistLogic + { + List? ReadList(PharmacistSearchModel? model); + PharmacistViewModel? ReadElement(PharmacistSearchModel model); + bool Create(PharmacistBindingModel model); + bool Update(PharmacistBindingModel model); + bool Delete(PharmacistBindingModel model); + } +} diff --git a/Hospital/HospitalContracts/SearchModels/PharmacistSearchModel.cs b/Hospital/HospitalContracts/SearchModels/PharmacistSearchModel.cs new file mode 100644 index 0000000..0629f77 --- /dev/null +++ b/Hospital/HospitalContracts/SearchModels/PharmacistSearchModel.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HospitalContracts.BindingModels; +using HospitalContracts.SearchModels; +using HospitalContracts.ViewModels; + +namespace HospitalContracts.SearchModels +{ + public class PharmacistSearchModel + { + public int? Id { get; set; } + public string? FIO { get; set; } = string.Empty; + public string? Login { get; set; } = string.Empty; + public string? Password { get; set; } = string.Empty; + public string? PhoneNumber { get; set; } + } +} diff --git a/Hospital/HospitalContracts/ViewModels/PharmacistViewModel.cs b/Hospital/HospitalContracts/ViewModels/PharmacistViewModel.cs index e558b1e..92156f5 100644 --- a/Hospital/HospitalContracts/ViewModels/PharmacistViewModel.cs +++ b/Hospital/HospitalContracts/ViewModels/PharmacistViewModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace HospitalContracts.ViewModels { - internal class PharmacistViewModel + public class PharmacistViewModel { } }