CourseWork_Borschevskaya_A..../Hospital/HospitalContracts/ViewModels/RecipeViewModel.cs

26 lines
868 B
C#

using HospitalDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace HospitalContracts.ViewModels
{
public class RecipeViewModel : IRecipeModel
{
public int Id { get; set; }
[DisplayName("Название")]
public string Name { get; set; } = string.Empty;
[DisplayName("Дата создания")]
public DateTime Date { get; set; } = DateTime.Now;
public int ApothecaryId { get; set; }
[DisplayName("Автор записи")]
public string ApothecaryLogin { get; set; } = string.Empty;
public Dictionary<int, IMedicineModel> RecipeMedicines { get; set; } = new();
public Dictionary<int, ITreatmentModel> RecipeTreatments { get; set; } = new();
}
}