public IActionResult EditTask(int projectId, int taskId, TaskModel task) { try { _projectRepository.EditTask(projectId, taskId, task); return(Ok()); } catch (AppException ex) { return(NotFound(new { message = ex.Message })); } catch (NotFoundException ex) { return(NotFound(new { message = ex.Message })); } catch (Exception ex) { return(BadRequest(new { message = ex.Message })); } }