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 }); }
public void Updat(UserPostCommentBM model) { uow.UserPostCommentRepository.Update(ConvertToDM(model)); uow.Save(); }
public void Create(UserPostCommentBM model) { uow.UserPostCommentRepository.Add(ConvertToDM(model)); uow.Save(); }