Пример #1
0
 public bool SaveDataOnPMVendorCustomerLocations(PmVendorCustomerLocationEntity item)
 {
     using (FacilitiesEntities db = new FacilitiesEntities())
     {
         try
         {
             foreach (var value in item.CustomerLocation)
             {
                 PMVendorCustomerLocation PVCL = new PMVendorCustomerLocation();
                 PVCL.PMVendorCustomerLocationId = Guid.NewGuid();
                 PVCL.CustomerLocation           = value;
                 PVCL.PMVendor = item.PMVendor;
                 db.PMVendorCustomerLocations.Add(PVCL);
                 db.SaveChanges();
             }
         }
         catch (Exception ex)
         {
             throw (ex);
         }
     }
     return(true);
 }
Пример #2
0
 public bool SaveDataOnPMVendorCustomerLocations(PmVendorCustomerLocationEntity item)
 {
     return(repository.SaveDataOnPMVendorCustomerLocations(item));
 }