public void CreateClient(Client c) { if (c.Mail == "") { throw new Exception("The Mail Field Is Empty"); } if (c.Lname == "") { throw new Exception("The Last Name Field I s Empty"); } if (c.Fname == "") { throw new Exception("The First Name Field Is Empty"); } if (c.Address == "") { throw new Exception("The Address Field Is Empty"); } if (c.Suite == "") { throw new Exception("The Suite Field Is Empty"); } if (c.City == "") { throw new Exception("The City Field Is Empty"); } if (c.Zip == "") { throw new Exception("The Zip Field Is Empty"); } if (c.MobileNum == "" && c.HomeNum == "" && c.WorkNum == "") { throw new Exception("One Of The Phone Numbers Fields Must Be Full"); } UserC u = new UserC(); u.UpdateUser(new User(c.Mail, "", c.Fname, c.Lname, c.MobileNum)); ClientC clientC = new ClientC(); clientC.CreateClient(c); }