Add PricePerHour to booking requests and update validation logic
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user