Example #1
0
 public ContactMaster CreateContact(ContactMaster contactToCreate)
 {
     // Save new contact
     try
     {
         _entities.ContactMasters.Add(contactToCreate);
         _entities.SaveChanges();
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return(contactToCreate);
 }