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"); } }
public void UpdateStockDetached(Stock e) { utOfWork.BiensRepository.UpdateStockDetached(e); }
public ActionResult GetStock(Stock st) { var test = BissInventaireEntities.Instance.Stock.ToList(); ; return View(test); }