Beispiel #1
0
 public IActionResult GetAllToDoTasks(int page = 1)
 {
     try
     {
         var allToDoTasks = _toDoTaskService.GetAllToDoTasks(page).Result;
         return(Ok(allToDoTasks));
     }
     catch (Exception ex)
     {
         //TODO log exception
         return(BadRequest(ex.Message));
     }
 }