예제 #1
0
        public void EditComment(MainComment comment)
        {
            var prop = _blogUnitOfWork.MainCommentRepository.GetById(comment.Id);

            prop.Id      = comment.Id;
            prop.Message = comment.Message;
            prop.Status  = comment.Status;
            _blogUnitOfWork.Save();
        }
예제 #2
0
 public void CreateMC(MainComment mainComment)
 {
     _blogUnitOfWork.MainCommentRepository.Add(mainComment);
     _blogUnitOfWork.Save();
 }