2024-04-19 16:15:01 +04:00
|
|
|
|
using LawFimDataModels.Models;
|
2024-05-30 03:12:16 +04:00
|
|
|
|
using Newtonsoft.Json;
|
2024-04-19 16:15:01 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace LawFirmContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ConsultationViewModel : IConsultationModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Номер консультации")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[DisplayName("Цена консультации")]
|
|
|
|
|
public double Cost { get; set; }
|
2024-04-27 19:02:25 +04:00
|
|
|
|
[DisplayName("Дата консультации")]
|
|
|
|
|
public DateTime ConsultationDate { get; set; }
|
|
|
|
|
[DisplayName("Дело")]
|
2024-04-19 16:15:01 +04:00
|
|
|
|
public string CaseName { get; set; } = string.Empty;
|
|
|
|
|
public int CaseId { get; set; }
|
|
|
|
|
public int GuarantorId { get; set; }
|
|
|
|
|
public Dictionary<int, ILawyerModel> ConsultationLawyers { get; set; } = new();
|
2024-05-30 03:12:16 +04:00
|
|
|
|
|
|
|
|
|
public ConsultationViewModel() { }
|
|
|
|
|
[JsonConstructor]
|
|
|
|
|
public ConsultationViewModel(Dictionary<int, ClientViewModel> ConsultationLawyers)
|
|
|
|
|
{
|
|
|
|
|
this.ConsultationLawyers = ConsultationLawyers.ToDictionary(x => x.Key, x => x.Value as ILawyerModel);
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-04-19 16:15:01 +04:00
|
|
|
|
}
|
2024-05-30 03:12:16 +04:00
|
|
|
|
|