34 lines
955 B
C#
34 lines
955 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
|
|
{
|
|
/// <summary>
|
|
/// Модель представления для сущности "Лекарство"
|
|
/// </summary>
|
|
public class MedicineViewModel : IMedicineModel
|
|
{
|
|
/// <summary>
|
|
/// Идентификатор
|
|
/// </summary>
|
|
public int Id { get; set; }
|
|
|
|
/// <summary>
|
|
/// Название лекарства
|
|
/// </summary>
|
|
[DisplayName("Название лекарства")]
|
|
public string Name { get; set; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Описание лекарства
|
|
/// </summary>
|
|
[DisplayName("Описание лекарства")]
|
|
public string? Description { get; set; }
|
|
}
|
|
}
|