public Comment(SerComment comment) { Id = comment.Id; UserId = comment.UserId; Text = comment.Text; Data = comment.Data; CardId = comment.CardId; }
public void ChangeComment(int id, SerComment comment) { _repository.ChangeComment(id, new Comment(comment)); }
public int AddComment(SerComment comment) { return(_repository.AddComment(new Comment(comment))); }