Пример #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));
        }