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(); }
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(); }