PIbd-21_Danilov_V.V._Course.../VeterinaryClinic/VeterinaryClinicContracts/ViewModels/AnimalViewModel.cs
2024-04-30 23:14:53 +04:00

32 lines
876 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VeterinaryClinicDataModels.Models;
namespace VeterinaryClinicContracts.ViewModels
{
public class AnimalViewModel : IAnimalModel
{
public int Id { get; set; }
[DisplayName("Вид животного")]
public string Type { get; set; } = string.Empty;
[DisplayName("Порода")]
public string Breed { get; set; } = string.Empty;
[DisplayName("Возраст")]
public int Age { get; set; }
public int UserId { get; set; }
[DisplayName("ФИО пользователя")]
public string UserFullName { get; set; } = string.Empty;
public Dictionary<int, IMedicationModel> AnimalMedications { get; set; } = new();
}
}