Beispiel #1
0
        void ITrendBusinessLogic.PatchContentScanTaskApprovals(Guid id, PatchContentScanTaskApprovalsDto taskApprovalsDto)
        {
            Trend trend = trendRepository.GetById(id);

            trend.ApprovedImage = taskApprovalsDto.ApprovedImage;
            trend.ApprovedText  = taskApprovalsDto.ApprovedText;
            trendRepository.Update(trend);
            trendRepository.SaveChanges();
        }
        void IPostBusinessLogic.PatchContentScanTaskApprovals(Guid id, PatchContentScanTaskApprovalsDto taskApprovalsDto)
        {
            Post post = postRepository.GetById(id);

            post.ApprovedText  = taskApprovalsDto.ApprovedText;
            post.ApprovedImage = taskApprovalsDto.ApprovedImage;
            postRepository.Update(post);
            postRepository.SaveChanges();
        }
Beispiel #3
0
        void ICommentBusinessLogic.PatchContentScanTaskApprovals(Guid id, PatchContentScanTaskApprovalsDto taskApprovalsDto)
        {
            Comment comment = commentRepository.GetById(id);

            comment.ApprovedImage = taskApprovalsDto.ApprovedImage;
            comment.ApprovedText  = taskApprovalsDto.ApprovedText;
            commentRepository.Update(comment);
            commentRepository.SaveChanges();
        }