public void CreateComment(int caseId, Person person, string text) { if (caseId <= 0) { throw new ArgumentException("Case id missing"); } if (person.Id <= 0) { throw new ArgumentException("Person id missing"); } if (text.Length <= 0) { throw new ArgumentException("Text can not be empty"); } client.CreateComment(caseId, person.Id, text); }