Add PricePerHour to booking requests and update validation logic

This commit is contained in:
2026-09-30 11:41:57 +05:30
parent 7d8a8478ff
commit 6abef835e8
3 changed files with 23 additions and 6 deletions
+5
View File
@@ -52,6 +52,11 @@ namespace Fitness_core_BE.DTOs.Booking
public string GuestPhone { get; set; } = string.Empty;
public int? PartySize { get; set; }
/// <summary>Overrides the facility's own PricePerHour for this booking's charge only --
/// the FE pre-fills this from the facility but lets staff adjust it.</summary>
[Range(typeof(decimal), "0", "79228162514264337593543950335", ErrorMessage = "PricePerHour cannot be negative")]
public decimal? PricePerHour { get; set; }
}
public class MarkGuestBookingPaidRequest