private void Validate(Comment comment) { if (string.IsNullOrWhiteSpace(comment.Text)) { throw new InvalidCommentTextException(); } encounterBL.CheckIfExists(comment.EncounterId); userBL.CheckIfExists(comment.UserId); }
private void Validate(Comment comment) { if (string.IsNullOrWhiteSpace(comment.Text)) { throw new InvalidCommentTextException(); } encounterBL.CheckIfExists(comment.EncounterId); userBL.CheckIfExists(comment.UserId); }