예제 #1
0
 private UserPostComment ConvertToDM(UserPostCommentBM model)
 {
     return(new UserPostComment
     {
         Id = model.Id,
         UserId = model.UserId,
         Comment = model.Comment,
         PostId = model.PostId,
         CreatedBy = model.CreatedBy,
         CreationDate = model.CreationDate,
         ModifiedBy = model.ModifiedBy,
         ModificationDate = model.ModificationDate
     });
 }
예제 #2
0
 public void Updat(UserPostCommentBM model)
 {
     uow.UserPostCommentRepository.Update(ConvertToDM(model));
     uow.Save();
 }
예제 #3
0
 public void Create(UserPostCommentBM model)
 {
     uow.UserPostCommentRepository.Add(ConvertToDM(model));
     uow.Save();
 }