Beispiel #1
0
 public Lot Save(Lot lot)
 {
     if (lot.PkLot > 0)
     {
         _fabContext.Lot.Update(lot);
         _fabContext.SaveChanges();
         _lockManager.DeleteTableLock("lot", lot.PkLot);
     }
     else
     {
         _fabContext.Lot.Add(lot);
         _fabContext.SaveChanges();
     }
     return(lot);
 }
Beispiel #2
0
 public JsonResult DeleteLock(string tableName, int recordKey)
 {
     _lockManager.DeleteTableLock(tableName, recordKey);
     return(Json(true));
 }