From 66f475ff056c6d3b52836c2ccfe3d9cb2e3f6955 Mon Sep 17 00:00:00 2001 From: AnnZhimol Date: Sat, 1 Apr 2023 18:47:51 +0400 Subject: [PATCH] Binding Models --- .../BindingModels/MemberBindingModel.cs | 15 +++++++++++++++ .../BindingModels/OrganiserBindingModel.cs | 19 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 Hotel/HotelContracts/BindingModels/MemberBindingModel.cs create mode 100644 Hotel/HotelContracts/BindingModels/OrganiserBindingModel.cs diff --git a/Hotel/HotelContracts/BindingModels/MemberBindingModel.cs b/Hotel/HotelContracts/BindingModels/MemberBindingModel.cs new file mode 100644 index 0000000..99b75d6 --- /dev/null +++ b/Hotel/HotelContracts/BindingModels/MemberBindingModel.cs @@ -0,0 +1,15 @@ +using HotelDataModels.Models; + +namespace HotelContracts.BindingModels +{ + public class MemberBindingModel : IMemberModel + { + public string MemberFIO { get; set; } = string.Empty; + + public string Citizenship { get; set; } = string.Empty; + + public int OrganiserId { get; set; } + + public int Id { get; set; } + } +} diff --git a/Hotel/HotelContracts/BindingModels/OrganiserBindingModel.cs b/Hotel/HotelContracts/BindingModels/OrganiserBindingModel.cs new file mode 100644 index 0000000..b9bdd41 --- /dev/null +++ b/Hotel/HotelContracts/BindingModels/OrganiserBindingModel.cs @@ -0,0 +1,19 @@ +using HotelDataModels.Models; + +namespace HotelContracts.BindingModels +{ + public class OrganiserBindingModel : IOrganiserModel + { + public string OrganiserFIO { get; set; } = string.Empty; + + public string OrganiserPassword { get; set; } = string.Empty; + + public string OrganiserLogin { get; set; } = string.Empty; + + public string OrganiserEmail { get; set; } = string.Empty; + + public string OrganiserNumber { get; set; } = string.Empty; + + public int Id { get; set; } + } +}