Example #1
0
 private void UpdateAskLeg(AskLeg leg, InfoExchangeContext context)
 {
     leg.Ask = null;
     context.AskLegs.Attach(leg);
     context.Entry(leg).State = EntityState.Modified;
     context.SaveChanges();
 }
Example #2
0
 public void UpadateAskLeg(AskLeg leg)
 {
     using (var context = new InfoExchangeContext())
     {
         UpadateAskLeg(leg);
     }
 }