Esempio n. 1
0
        public async Task <ActionResult> GetSchedules()
        {
            var response = new ResponseCollection <ScheduleDto>();

            try
            {
                response.Objects = await _scheduleLogic.GetSchedules();
            }
            catch (Exception e)
            {
                response.IsError      = true;
                response.ErrorMessage = e.Message;
                _logger.LogError($"ScheduleController | Error | Error message : {e.Message}");
            }

            return(Ok(response));
        }