diff --git a/TravelCompany/TravelCompanyContracts/BindingModels/Contractor/ExcursionBindingModel.cs b/TravelCompany/TravelCompanyContracts/BindingModels/Contractor/ExcursionBindingModel.cs index 7821ecb..194decc 100644 --- a/TravelCompany/TravelCompanyContracts/BindingModels/Contractor/ExcursionBindingModel.cs +++ b/TravelCompany/TravelCompanyContracts/BindingModels/Contractor/ExcursionBindingModel.cs @@ -8,7 +8,7 @@ namespace TravelCompanyContracts.BindingModels.Contractor { public int Id { get; set; } public string ExcursionName { get; set; } = string.Empty; - public int ExcursionPrice { get; set; } + public double ExcursionPrice { get; set; } public int ContractorID { get; set; } } } diff --git a/TravelCompany/TravelCompanyContracts/SearchModels/Contractor/ExcursionSearchModel.cs b/TravelCompany/TravelCompanyContracts/SearchModels/Contractor/ExcursionSearchModel.cs index 53d9399..b8248af 100644 --- a/TravelCompany/TravelCompanyContracts/SearchModels/Contractor/ExcursionSearchModel.cs +++ b/TravelCompany/TravelCompanyContracts/SearchModels/Contractor/ExcursionSearchModel.cs @@ -10,7 +10,7 @@ namespace TravelCompanyContracts.SearchModels.Contractor { public int? Id { get; set; } public string? ExcursionName { get; set; } = string.Empty; - public int? ExcursionPrice { get; set; } + public double? ExcursionPrice { get; set; } public int? ContractorID { get; set; } } } diff --git a/TravelCompany/TravelCompanyContracts/ViewModels/Contractor/ViewModels/ExcursionViewModel.cs b/TravelCompany/TravelCompanyContracts/ViewModels/Contractor/ViewModels/ExcursionViewModel.cs index 8be4aa3..5532241 100644 --- a/TravelCompany/TravelCompanyContracts/ViewModels/Contractor/ViewModels/ExcursionViewModel.cs +++ b/TravelCompany/TravelCompanyContracts/ViewModels/Contractor/ViewModels/ExcursionViewModel.cs @@ -14,7 +14,7 @@ namespace TravelCompanyContracts.ViewModels.Contractor.ViewModels [DisplayName("Наименование экскурсии")] public string ExcursionName { get; set; } = string.Empty; [DisplayName("Стоимость экскурсии")] - public int ExcursionPrice { get; set; } + public double ExcursionPrice { get; set; } public int ContractorID { get; set; } } } diff --git a/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionModel.cs b/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionModel.cs index e9a5c2f..be52971 100644 --- a/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionModel.cs +++ b/TravelCompany/TravelCompanyDataModels/Models/Contractor/IExcursionModel.cs @@ -9,7 +9,7 @@ namespace TravelCompanyDataModels.Models.Contractor public interface IExcursionModel : IId { string ExcursionName { get; } - int ExcursionPrice { get; } + double ExcursionPrice { get; } int ContractorID { get; } } } diff --git a/TravelCompany/TravelCompanyDatabaseImplement/Models/Excursion.cs b/TravelCompany/TravelCompanyDatabaseImplement/Models/Excursion.cs index a67e160..907daf0 100644 --- a/TravelCompany/TravelCompanyDatabaseImplement/Models/Excursion.cs +++ b/TravelCompany/TravelCompanyDatabaseImplement/Models/Excursion.cs @@ -20,7 +20,7 @@ namespace TravelCompanyDatabaseImplement.Models public string ExcursionName { get; set; } = string.Empty; [Required] - public int ExcursionPrice { get; set; } + public double ExcursionPrice { get; set; } [Required] public int ContractorID { get; set; }