示例#1
0
        public async Task <ActionResult <TaskModel> > AssignProjectAsync(int id, int projectId)
        {
            var taskResult = await _taskService.AssignProjectAsync(id, projectId);

            return(ActionResultHelper <TaskModel> .GetActionResult(taskResult, false));
        }
示例#2
0
        public async Task <ActionResult <int> > AddCommentAsync(int id, string content)
        {
            var commentResult = await _commentService.AddCommentAsync(id, content);

            return(ActionResultHelper <int> .GetActionResult(commentResult));
        }
示例#3
0
        public async Task <ActionResult <TaskModel> > RenameAsync(int id, string name)
        {
            var taskResult = await _taskService.RenameAsync(id, name);

            return(ActionResultHelper <TaskModel> .GetActionResult(taskResult, false));
        }
示例#4
0
        public async Task <ActionResult <TaskModel> > MarkOpenedAsync(int id)
        {
            var taskResult = await _taskService.MarkTaskAsOpenedAsync(id);

            return(ActionResultHelper <TaskModel> .GetActionResult(taskResult, false));
        }
示例#5
0
        public async Task <ActionResult <int> > AddAsync(string name)
        {
            var taskResult = await _taskService.AddTaskAsync(name);

            return(ActionResultHelper <int> .GetActionResult(taskResult));
        }
示例#6
0
        public async Task <ActionResult <CommentModel> > DeleteCommentAsync(int commentId)
        {
            var commentResult = await _commentService.DeleteCommentAsync(commentId);

            return(ActionResultHelper <CommentModel> .GetActionResult(commentResult, false));
        }
示例#7
0
        public async Task <ActionResult <CommentModel> > EditCommentAsync(int commentId, string content)
        {
            var commentResult = await _commentService.UpdateCommentAsync(commentId, content);

            return(ActionResultHelper <CommentModel> .GetActionResult(commentResult, false));
        }
示例#8
0
        public async Task <ActionResult <ProjectModel> > RenameAsync(int id, string name)
        {
            var projectResult = await _projectService.RenameAsync(id, name);

            return(ActionResultHelper <ProjectModel> .GetActionResult(projectResult, false));
        }
示例#9
0
        public async Task <ActionResult <int> > AddAsync(string name)
        {
            var projectResult = await _projectService.AddProjectAsync(name);

            return(ActionResultHelper <int> .GetActionResult(projectResult));
        }