Beispiel #1
0
 public void Create(Contact contact)
 {
     try
     {
         var c = crudContact.Retrieve <Contact>(contact);
         if (c != null)
         {
             throw new BusinessException(3);
         }
         crudContact.Create(contact);
     }
     catch (Exception ex)
     {
         ExceptionManager.GetInstance().Process(ex);
     }
 }
 public Contact RetrieveById(Contact contact)
 {
     return(crudContact.Retrieve <Contact>(contact));
 }