Esempio n. 1
0
 public BusinessObjects.Models.ResultsEnum insertBranch(BusinessObjects.Models.Branch branch)
 {
     try
     {
         DataAccessLayer.DALBranches.DALBranches dALBranches = new DataAccessLayer.DALBranches.DALBranches();
         return(dALBranches.insertBranch(branch));
     }
     catch (Exception ex)
     {
         ExceptionsWriter.saveEventsAndExceptions(ex, "Exceptions not handled", EventLogEntryType.Error);
         return(BusinessObjects.Models.ResultsEnum.notInserted);
     }
 }
Esempio n. 2
0
 public BusinessObjects.Models.ResultsEnum insertBranch(BusinessObjects.Models.Branch branch)
 {
     try
     {
         DataAccessLayer.DALBranches.DALBranches dALBranches = new DataAccessLayer.DALBranches.DALBranches();
         return(dALBranches.insertBranch(branch));
     }
     catch (Exception ex)
     {
         ExceptionsWriter.saveExceptionToLogFile(ex);
         return(BusinessObjects.Models.ResultsEnum.notInserted);
     }
 }