public async Task <ActionResult <TaskModel> > AssignProjectAsync(int id, int projectId) { var taskResult = await _taskService.AssignProjectAsync(id, projectId); return(ActionResultHelper <TaskModel> .GetActionResult(taskResult, false)); }
public async Task <ActionResult <int> > AddCommentAsync(int id, string content) { var commentResult = await _commentService.AddCommentAsync(id, content); return(ActionResultHelper <int> .GetActionResult(commentResult)); }
public async Task <ActionResult <TaskModel> > RenameAsync(int id, string name) { var taskResult = await _taskService.RenameAsync(id, name); return(ActionResultHelper <TaskModel> .GetActionResult(taskResult, false)); }
public async Task <ActionResult <TaskModel> > MarkOpenedAsync(int id) { var taskResult = await _taskService.MarkTaskAsOpenedAsync(id); return(ActionResultHelper <TaskModel> .GetActionResult(taskResult, false)); }
public async Task <ActionResult <int> > AddAsync(string name) { var taskResult = await _taskService.AddTaskAsync(name); return(ActionResultHelper <int> .GetActionResult(taskResult)); }
public async Task <ActionResult <CommentModel> > DeleteCommentAsync(int commentId) { var commentResult = await _commentService.DeleteCommentAsync(commentId); return(ActionResultHelper <CommentModel> .GetActionResult(commentResult, false)); }
public async Task <ActionResult <CommentModel> > EditCommentAsync(int commentId, string content) { var commentResult = await _commentService.UpdateCommentAsync(commentId, content); return(ActionResultHelper <CommentModel> .GetActionResult(commentResult, false)); }
public async Task <ActionResult <ProjectModel> > RenameAsync(int id, string name) { var projectResult = await _projectService.RenameAsync(id, name); return(ActionResultHelper <ProjectModel> .GetActionResult(projectResult, false)); }
public async Task <ActionResult <int> > AddAsync(string name) { var projectResult = await _projectService.AddProjectAsync(name); return(ActionResultHelper <int> .GetActionResult(projectResult)); }