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)); } }
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)); } }