ViewModels

This commit is contained in:
AnnZhimol 2023-04-01 19:20:54 +04:00
parent 9aacafa007
commit 99de2d096a
4 changed files with 75 additions and 2 deletions

View File

@ -1,6 +1,18 @@
namespace HotelContracts.ViewModels using HotelDataModels.Models;
using System.ComponentModel;
namespace HotelContracts.ViewModels
{ {
public class ConferenceViewModel public class ConferenceViewModel : IConferenceModel
{ {
[DisplayName("Название конференции")]
public string ConferenceName { get; set; } = string.Empty;
[DisplayName("Дата начала конференции")]
public DateTime StartDate { get; set; }
public int OrganiserId { get; set; }
public int Id { get; set; }
} }
} }

View File

@ -0,0 +1,18 @@
using HotelDataModels.Models;
using System.ComponentModel;
namespace HotelContracts.ViewModels
{
public class MealPlanViewModel : IMealPlanModel
{
[DisplayName("Название плана питания")]
public string MealPlanName { get; set; } = string.Empty;
[DisplayName("Цена плана питания")]
public double MealPlanPrice { get; set; }
public int OrganiserId { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using HotelDataModels.Models;
using System.ComponentModel;
namespace HotelContracts.ViewModels
{
public class MemberViewModel : IMemberModel
{
[DisplayName("ФИО участника")]
public string MemberFIO { get; set; } = string.Empty;
[DisplayName("Гражданство")]
public string Citizenship { get; set; } = string.Empty;
public int OrganiserId { get; set; }
public int Id { get; set; }
}
}

View File

@ -0,0 +1,25 @@
using HotelDataModels.Models;
using System.ComponentModel;
namespace HotelContracts.ViewModels
{
public class OrganiserViewModel : IOrganiserModel
{
[DisplayName("ФИО организатора")]
public string OrganiserFIO { get; set; } = string.Empty;
[DisplayName("Пароль организатора")]
public string OrganiserPassword { get; set; } = string.Empty;
[DisplayName("Логин организатора")]
public string OrganiserLogin { get; set; } = string.Empty;
[DisplayName("Эл. почта организатора")]
public string OrganiserEmail { get; set; } = string.Empty;
[DisplayName("Номер телефона организатора")]
public string OrganiserNumber { get; set; } = string.Empty;
public int Id { get; set; }
}
}