public void CreateComment(int caseId, int personId, string text) { if (caseId <= 0) { throw new DoesNotExistException(typeof(Case)); } if (personId <= 0) { throw new DoesNotExistException(typeof(Person)); } if (String.IsNullOrEmpty(text)) { throw new ArgumentException("Text can not be empty."); } commentData.CreateComment(caseId, personId, text); }