public IActionResult GetToDoTasksByTitle(string title, int page = 1) { try { var toDoTask = _toDoTaskService.GetToDoTasksByTitle(page, title).Result; return(Ok(toDoTask)); } catch (Exception ex) { //TODO log exception return(BadRequest(ex.Message)); } }