private void CreateNews(int userId, int commentId) { var news = new CommentNews(); news.UserId = userId; news.EntityId = commentId; context.CommentNewsStorage.Add(news); }
public static CommentNewsViewModel Map(CommentNews model) { var viewModel = mapper.Map(model); viewModel.Comment = SingleCommentMapper.Map(model.Comment); return viewModel; }