diff --git a/Hotel/HotelContracts/BindingModels/DinnerBindingModel.cs b/Hotel/HotelContracts/BindingModels/DinnerBindingModel.cs index 082fa1a..27cc821 100644 --- a/Hotel/HotelContracts/BindingModels/DinnerBindingModel.cs +++ b/Hotel/HotelContracts/BindingModels/DinnerBindingModel.cs @@ -4,7 +4,7 @@ namespace HotelContracts.BindingModels { public class DinnerBindingModel : IDinnerModel { - public string DinnerName { get; set; } + public string DinnerName { get; set; } = string.Empty; public double DinnetPrice { get; set; } diff --git a/Hotel/HotelContracts/BindingModels/HeadwaiterBindingModel.cs b/Hotel/HotelContracts/BindingModels/HeadwaiterBindingModel.cs index 7c67371..e641c98 100644 --- a/Hotel/HotelContracts/BindingModels/HeadwaiterBindingModel.cs +++ b/Hotel/HotelContracts/BindingModels/HeadwaiterBindingModel.cs @@ -4,15 +4,15 @@ namespace HotelContracts.BindingModels { public class HeadwaiterBindingModel : IHeadwaiterModel { - public string HeadwaiterFIO { get; set; } + public string HeadwaiterFIO { get; set; } = string.Empty; - public string HeadwaiterPassword { get; set; } + public string HeadwaiterPassword { get; set; } = string.Empty; - public string HeadwaiterLogin { get; set; } + public string HeadwaiterLogin { get; set; } = string.Empty; - public string HeadwaiterEmail { get; set; } + public string HeadwaiterEmail { get; set; } = string.Empty; - public string HeadwaiterNumber { get; set; } + public string HeadwaiterNumber { get; set; } = string.Empty; public int Id { get; set; } } diff --git a/Hotel/HotelContracts/BindingModels/RoomBindingModel.cs b/Hotel/HotelContracts/BindingModels/RoomBindingModel.cs index a5b4df5..19a6906 100644 --- a/Hotel/HotelContracts/BindingModels/RoomBindingModel.cs +++ b/Hotel/HotelContracts/BindingModels/RoomBindingModel.cs @@ -4,9 +4,9 @@ namespace HotelContracts.BindingModels { public class RoomBindingModel : IRoomModel { - public string RoomName { get; set; } + public string RoomName { get; set; } = string.Empty; - public string RoomFrame { get; set; } + public string RoomFrame { get; set; } = string.Empty; public double RoomPrice { get; set; } diff --git a/Hotel/HotelContracts/SearchModels/ConferenceBookingSearchModel.cs b/Hotel/HotelContracts/SearchModels/ConferenceBookingSearchModel.cs index 880c490..ff6505b 100644 --- a/Hotel/HotelContracts/SearchModels/ConferenceBookingSearchModel.cs +++ b/Hotel/HotelContracts/SearchModels/ConferenceBookingSearchModel.cs @@ -1,9 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - + namespace HotelContracts.SearchModels { public class ConferenceBookingSearchModel diff --git a/Hotel/HotelContracts/SearchModels/DinnerSearchModel.cs b/Hotel/HotelContracts/SearchModels/DinnerSearchModel.cs index 314f001..de70027 100644 --- a/Hotel/HotelContracts/SearchModels/DinnerSearchModel.cs +++ b/Hotel/HotelContracts/SearchModels/DinnerSearchModel.cs @@ -1,14 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - + namespace HotelContracts.SearchModels { public class DinnerSearchModel { - public string? DinnerName { get; set; } = string.Empty; + public string? DinnerName { get; set; } public int? Id { get; set; } } } diff --git a/Hotel/HotelContracts/SearchModels/HeadwaiterSearchModel.cs b/Hotel/HotelContracts/SearchModels/HeadwaiterSearchModel.cs index 0977863..be9b68c 100644 --- a/Hotel/HotelContracts/SearchModels/HeadwaiterSearchModel.cs +++ b/Hotel/HotelContracts/SearchModels/HeadwaiterSearchModel.cs @@ -1,18 +1,13 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - + namespace HotelContracts.SearchModels { public class HeadwaiterSearchModel { - public string? HeadwaiterFIO { get; set; } = string.Empty; + public string? HeadwaiterFIO { get; set; } - public string? HeadwaiterPassword { get; set; } = string.Empty; + public string? HeadwaiterPassword { get; set; } - public string? HeadwaiterLogin { get; set; } = string.Empty; + public string? HeadwaiterLogin { get; set; } public int? Id { get; set; } } } diff --git a/Hotel/HotelContracts/SearchModels/RoomSearchModel.cs b/Hotel/HotelContracts/SearchModels/RoomSearchModel.cs index 085418f..415e89c 100644 --- a/Hotel/HotelContracts/SearchModels/RoomSearchModel.cs +++ b/Hotel/HotelContracts/SearchModels/RoomSearchModel.cs @@ -1,14 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - + namespace HotelContracts.SearchModels { public class RoomSearchModel { - public string? RoomName { get; set; } = string.Empty; + public string? RoomName { get; set; } public int? Id { get; set; } } } diff --git a/Hotel/HotelContracts/ViewModels/DinnerViewModel.cs b/Hotel/HotelContracts/ViewModels/DinnerViewModel.cs index 9273984..623f2ab 100644 --- a/Hotel/HotelContracts/ViewModels/DinnerViewModel.cs +++ b/Hotel/HotelContracts/ViewModels/DinnerViewModel.cs @@ -1,10 +1,6 @@ using HotelDataModels.Models; -using System; -using System.Collections.Generic; using System.ComponentModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; + namespace HotelContracts.ViewModels {