Начала бизнесс логику

This commit is contained in:
Alenka 2024-04-27 15:40:02 +04:00
parent c5c0273831
commit 00ed5959f0
7 changed files with 43 additions and 3 deletions

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalContracts.BindingModels
{
public class DescriptionProcedureBildingModel
public class DescriptionProcedureBindingModel
{
}
}

View File

@ -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;

View File

@ -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<PharmacistViewModel>? ReadList(PharmacistSearchModel? model);
PharmacistViewModel? ReadElement(PharmacistSearchModel model);
bool Create(PharmacistBindingModel model);
bool Update(PharmacistBindingModel model);
bool Delete(PharmacistBindingModel model);
}
}

View File

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

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace HospitalContracts.ViewModels
{
internal class PharmacistViewModel
public class PharmacistViewModel
{
}
}