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