ViewModels
This commit is contained in:
parent
9aacafa007
commit
99de2d096a
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
18
Hotel/HotelContracts/ViewModels/MealPlanViewModel.cs
Normal file
18
Hotel/HotelContracts/ViewModels/MealPlanViewModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
18
Hotel/HotelContracts/ViewModels/MemberViewModel.cs
Normal file
18
Hotel/HotelContracts/ViewModels/MemberViewModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
25
Hotel/HotelContracts/ViewModels/OrganiserViewModel.cs
Normal file
25
Hotel/HotelContracts/ViewModels/OrganiserViewModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user