PIbd-21_MasenkinMS_Coursewo.../Hospital/HospitalContracts/BindingModels/RecipeBindingModel.cs

40 lines
1015 B
C#
Raw Normal View History

2024-04-16 02:44:22 +04:00
using HospitalDataModels.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalContracts.BindingModels
{
/// <summary>
/// Модель привязки для сущности "Рецепт"
/// </summary>
public class RecipeBindingModel : IRecipeModel
{
/// <summary>
/// Идентификатор
/// </summary>
public int Id { get; set; }
/// <summary>
/// Дата выписки рецепта
/// </summary>
public DateTime IssueDate { get; set; }
/// <summary>
/// Идентификатор доктора
/// </summary>
public int DoctorId { get; set; }
/// <summary>
/// Список лекарств в рецепте
/// </summary>
public Dictionary<int, IMedicineModel> RecipeMedicines
{
get;
set;
} = new();
}
}