Example #1
0
 public ActionResult EditStock(Stock etg)
 {
     try
     {
         bien.UpdateStockDetached(etg);
         BissInventaireEntities.Instance.SaveChanges();
         return RedirectToAction("GetStock");
     }
     catch (Exception ex)
     {
         LogThread.WriteLine(ex.Message);
         return RedirectToAction("Index", "Error");
     }
 }
Example #2
0
 public void UpdateStockDetached(Stock e)
 {
     utOfWork.BiensRepository.UpdateStockDetached(e);
 }
Example #3
0
 public ActionResult GetStock(Stock st)
 {
     var test = BissInventaireEntities.Instance.Stock.ToList(); ;
     return View(test);
 }