Пример #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();
 }