Refactor CustomerPlanService to use FacilityRepository, remove PlaceService, and introduce RfidTagService
- Updated CustomerPlanService to replace references to PlaceRepo with FacilityRepository for managing customer plans and associated facilities. - Removed PlaceService and its related methods, consolidating functionality into FacilityService. - Added RfidTagService for managing RFID tags, including methods for creating, updating, and setting statuses of tags. - Updated TenantDbContext to include new DbSet for RfidTags and CustomerPlanFacilities, and adjusted model configurations accordingly. - Enhanced FacilityService to support new booking modes and validation for facility creation and updates.
This commit is contained in:
@@ -11,9 +11,7 @@ namespace Fitness_core_BE.Helpers
|
||||
public static string Render(BookingDto booking)
|
||||
{
|
||||
var who = booking.IsGuest ? Encode(booking.GuestName) : "Member booking";
|
||||
var when = booking.SessionStartTime.HasValue
|
||||
? $"{booking.SessionStartTime:dddd, dd MMM yyyy}, {booking.SessionStartTime:h:mm tt} - {booking.SessionEndTime:h:mm tt}"
|
||||
: "-";
|
||||
var when = $"{booking.StartTime:dddd, dd MMM yyyy}, {booking.StartTime:h:mm tt} - {booking.EndTime:h:mm tt}";
|
||||
|
||||
var statusColor = booking.Status switch
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user