public async Task <IActionResult> GetAvailable(int patrolId) { if (User.PatrolIds().Any(x => x == patrolId)) { var availableShifts = await _shiftRepository.GetAvailableTrainerShiftsForTrainee(patrolId, this.User.UserId(), _clock.UtcNow.UtcDateTime); return(Ok(availableShifts)); } else { return(Forbid()); } }