Ejemplo n.º 1
0
        public async Task <IActionResult> GetTimeSlotDetailsAsync(Guid id)
        {
            if (ActionResult(id, out var actionResult))
            {
                return(actionResult);
            }

            var results = await _schedulingRepository.FetchTimeSlotAsync(id);

            if (results == null)
            {
                return(NotFound($"Time slot with id {id} cannot be found"));
            }

            return(Ok(results));
        }