Exemple #1
0
        public async Task <ActionResult> GetToDoTasks()
        {
            try
            {
                var result = await _toDoTaskService.GetToDoTasks(HttpContext.User);

                if (result == null)
                {
                    return(NotFound());
                }

                return(Ok(result));
            }
            catch (Exception)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError,
                                  Constants.ErrorRetrieveDatabase));
            }
        }