Exemplo n.º 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));
        }
Exemplo n.º 2
0
        public async Task <ActionResult <int> > AddCommentAsync(int id, string content)
        {
            var commentResult = await _commentService.AddCommentAsync(id, content);

            return(ActionResultHelper <int> .GetActionResult(commentResult));
        }
Exemplo n.º 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));
        }
Exemplo n.º 4
0
        public async Task <ActionResult <TaskModel> > MarkOpenedAsync(int id)
        {
            var taskResult = await _taskService.MarkTaskAsOpenedAsync(id);

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

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

            return(ActionResultHelper <CommentModel> .GetActionResult(commentResult, false));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 9
0
        public async Task <ActionResult <int> > AddAsync(string name)
        {
            var projectResult = await _projectService.AddProjectAsync(name);

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