8 лаба

This commit is contained in:
2025-05-22 09:32:03 +04:00
parent 018a222a2c
commit 59637a3e18
41 changed files with 680 additions and 420 deletions

View File

@@ -22,6 +22,8 @@ internal class TourDataModel(string id, string tourName, string tourCountry, dou
public double Price { get; private set; } = price;
public TourType TourType { get; private set; } = tourType;
public TourDataModel() : this(string.Empty, string.Empty, string.Empty, 0, TourType.None) { }
public void Validate(IStringLocalizer<Messages> localizer)
{
if (Id.IsEmpty())