32 lines
876 B
C#
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();
|
|
}
|
|
}
|