Exemple #1
0
 public int Insert(FacilitySchedule saveThis)
 {
     try
     {
         _db.FacilitySchedules.InsertOnSubmit(saveThis);
         _db.SubmitChanges();
         return(saveThis.Id);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
 public int Insert(Location saveThis)
 {
     try
     {
         _db.Locations.InsertOnSubmit(saveThis);
         _db.SubmitChanges();
         return(saveThis.Id);
     }
     catch (Exception e)
     {
         throw new Exception(e.Message);
     }
 }
 public int Insert(Customer saveThis)
 {
     try
     {
         _db.Customers.InsertOnSubmit(saveThis);
         _db.SubmitChanges();
         return(saveThis.Id);
     }
     catch (Exception e)
     {
         throw e;
     }
 }