public void UpdateRMA(int rmaID)
 {
     using (var context = new ServiceContext())
     {
         RMA rmaUpdate = context.RMAs.FirstOrDefault(d => d.RMAid == rmaID);
         if (rmaUpdate != null)
         {
             rmaUpdate.ServiceCallID = 1;
         }
         context.SaveChanges();
     }
 }
예제 #2
0
 // Updates the RMACreated field in the DOC database
 public void UpdateDOC(int docID)
 {
     using (var context = new ServiceContext())
     {
         DeclarationOfConformity docUpdate = context.DOCs.FirstOrDefault(d => d.DeclarationOfConformityID == docID);
         if (docUpdate != null)
         {
             docUpdate.RMACreated = true;
         }
         context.SaveChanges();
     }
 }