public Result <TaskComment> GetTaskComment(int id)
        {
            var result = new Result <TaskComment>();
            TaskCommentService taskCommentService = new TaskCommentService();

            result.Value     = taskCommentService.GetTaskComment(id);
            result.IsSuccess = true;
            return(result);
        }
        public Result <IList <TaskComment> > GetTaskComments(int taskId)
        {
            var result = new Result <IList <TaskComment> >();
            TaskCommentService taskCommentService = new TaskCommentService();

            result.Value     = taskCommentService.GetTaskComments(taskId);
            result.IsSuccess = true;
            return(result);
        }
        public Result Update(TaskComment taskComment)
        {
            var result = new Result();

            try
            {
                TaskCommentService taskCommentService = new TaskCommentService();
                taskCommentService.UpdateTaskComment(taskComment);
                result.IsSuccess = true;
            }
            catch (Exception exception)
            {
                result.IsSuccess     = false;
                result.ExceptionInfo = exception;
            }
            return(result);
        }