private bool ValidateBookingExists(BookingSubjectType type) { if (Enum.IsDefined(typeof(BookingSubjectType), type)) { return(true); } return(false); }
public async Task <bool> ValidateBookingExists(BookingSubjectType type) { if (await _context.BookingSubjects.AnyAsync(b => b.BookingType == type)) { return(true); } return(false); }