2024-05-01 01:54:08 +04:00
|
|
|
|
using LawCompanyDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
2024-08-28 03:10:45 +04:00
|
|
|
|
using System.Text.Json.Serialization;
|
2024-05-01 01:54:08 +04:00
|
|
|
|
|
|
|
|
|
namespace LawCompanyContracts.ViewModels
|
|
|
|
|
{
|
2024-05-01 23:48:28 +04:00
|
|
|
|
public class ConsultationViewModel : IConsultationModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Номер консультации")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[DisplayName("Цена консультации")]
|
|
|
|
|
public double Cost { get; set; }
|
|
|
|
|
[DisplayName("Дата консультации")]
|
|
|
|
|
public DateTime ConsultationDate { get; set; }
|
2024-08-28 03:10:45 +04:00
|
|
|
|
public int? CaseId { get; set; }
|
2024-05-01 23:48:28 +04:00
|
|
|
|
public int GuarantorId { get; set; }
|
|
|
|
|
public Dictionary<int, ILawyerModel> ConsultationLawyers { get; set; } = new();
|
2024-05-27 02:42:16 +04:00
|
|
|
|
public CaseViewModel Case { get; set; }
|
2024-08-28 03:10:45 +04:00
|
|
|
|
|
|
|
|
|
public ConsultationViewModel() { }
|
|
|
|
|
|
|
|
|
|
[JsonConstructor]
|
|
|
|
|
public ConsultationViewModel(Dictionary<int, LawyerViewModel> ConsultationLawyers)
|
|
|
|
|
{
|
|
|
|
|
this.ConsultationLawyers = ConsultationLawyers.ToDictionary(x => x.Key, x => x.Value as ILawyerModel);
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-05-01 01:54:08 +04:00
|
|
|
|
}
|