From 086679ff894e3e8437552362e60aa39b2074239d Mon Sep 17 00:00:00 2001 From: Alenka Date: Sat, 27 Apr 2024 00:04:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=BB=D0=BE=D0=BC=D0=B0=D1=8E=20=D0=B3=D0=B8?= =?UTF-8?q?=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DescriptionProcedureBildingModel.cs | 12 ++++++++++++ .../BindingModels/DiseaseBildingModel.cs | 18 ++++++++++++++++++ .../BindingModels/PharmacistBildingModel.cs | 19 +++++++++++++++++++ ...ndingModel.cs => ProcedureBildingModel.cs} | 2 +- .../Models/{IDisease.cs => IDiseaseModel.cs} | 2 +- .../Models/IPharmacistModel.cs | 2 +- 6 files changed, 52 insertions(+), 3 deletions(-) create mode 100644 Hospital/HospitalContracts/BindingModels/DescriptionProcedureBildingModel.cs create mode 100644 Hospital/HospitalContracts/BindingModels/DiseaseBildingModel.cs create mode 100644 Hospital/HospitalContracts/BindingModels/PharmacistBildingModel.cs rename Hospital/HospitalContracts/BindingModels/{ProcedureBindingModel.cs => ProcedureBildingModel.cs} (91%) rename Hospital/HospitalDataModels/Models/{IDisease.cs => IDiseaseModel.cs} (88%) diff --git a/Hospital/HospitalContracts/BindingModels/DescriptionProcedureBildingModel.cs b/Hospital/HospitalContracts/BindingModels/DescriptionProcedureBildingModel.cs new file mode 100644 index 0000000..4bc1fd7 --- /dev/null +++ b/Hospital/HospitalContracts/BindingModels/DescriptionProcedureBildingModel.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.BindingModels +{ + public class DescriptionProcedureBildingModel + { + } +} diff --git a/Hospital/HospitalContracts/BindingModels/DiseaseBildingModel.cs b/Hospital/HospitalContracts/BindingModels/DiseaseBildingModel.cs new file mode 100644 index 0000000..aa5ce9c --- /dev/null +++ b/Hospital/HospitalContracts/BindingModels/DiseaseBildingModel.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using HospitalDataModels.Models; + + +namespace HospitalContracts.BindingModels +{ + public class DiseaseBildingModel : IDiseaseModel + { + public string Name { get; set; } = string.Empty; + public string Description { get; set; } = string.Empty; + public int DoctorId { get; set; } + public int Id { get; set; } + } +} diff --git a/Hospital/HospitalContracts/BindingModels/PharmacistBildingModel.cs b/Hospital/HospitalContracts/BindingModels/PharmacistBildingModel.cs new file mode 100644 index 0000000..e45b32e --- /dev/null +++ b/Hospital/HospitalContracts/BindingModels/PharmacistBildingModel.cs @@ -0,0 +1,19 @@ +using HospitalDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace HospitalContracts.BindingModels +{ + public class PharmacistBildingModel : IPharmacistModel + { + 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; } = string.Empty; + public int Id { get; set; } + + } +} diff --git a/Hospital/HospitalContracts/BindingModels/ProcedureBindingModel.cs b/Hospital/HospitalContracts/BindingModels/ProcedureBildingModel.cs similarity index 91% rename from Hospital/HospitalContracts/BindingModels/ProcedureBindingModel.cs rename to Hospital/HospitalContracts/BindingModels/ProcedureBildingModel.cs index aa44d5f..5f00463 100644 --- a/Hospital/HospitalContracts/BindingModels/ProcedureBindingModel.cs +++ b/Hospital/HospitalContracts/BindingModels/ProcedureBildingModel.cs @@ -8,7 +8,7 @@ using HospitalDataModels.Models; namespace HospitalContracts.BindingModels { - public class ProcedureBindingModel : IProcedureModel + public class ProcedureBildingModel : IProcedureModel { public string Name { get; set; } = string.Empty; diff --git a/Hospital/HospitalDataModels/Models/IDisease.cs b/Hospital/HospitalDataModels/Models/IDiseaseModel.cs similarity index 88% rename from Hospital/HospitalDataModels/Models/IDisease.cs rename to Hospital/HospitalDataModels/Models/IDiseaseModel.cs index 3d27dd7..e471b49 100644 --- a/Hospital/HospitalDataModels/Models/IDisease.cs +++ b/Hospital/HospitalDataModels/Models/IDiseaseModel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace HospitalDataModels.Models { - internal interface IDisease + public interface IDiseaseModel { string Name { get; } string Description { get; } diff --git a/Hospital/HospitalDataModels/Models/IPharmacistModel.cs b/Hospital/HospitalDataModels/Models/IPharmacistModel.cs index d0e7071..d7510a7 100644 --- a/Hospital/HospitalDataModels/Models/IPharmacistModel.cs +++ b/Hospital/HospitalDataModels/Models/IPharmacistModel.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; namespace HospitalDataModels.Models { - internal interface IPharmacistModel : IId + public interface IPharmacistModel : IId { string FIO { get; } string Login { get; }