public ActionResult EditCategorie_materiel(Categorie_materiel Catm) { try { db.UpdateCategorie_materielDetached(Catm); db.SaveCategorie_materiel(); return(RedirectToAction("GetCategorie_materiel")); } catch (Exception ex) { LogThread.WriteLine(ex.Message); return(RedirectToAction("Index", "Error")); } }
public ActionResult CreateCategorie_materiel(Categorie_materiel Catm, FormCollection collection) { try { BissInventaireEntities.Instance.Categorie_materiel.Add(Catm); BissInventaireEntities.Instance.SaveChanges(); return(RedirectToAction("GetCategorie_materiel")); } catch (Exception ex) { LogThread.WriteLine(ex.Message); return(RedirectToAction("Index", "Error")); } }
public void UpdateCategorie_materielDetached(Categorie_materiel e) { utOfWork.Categorie_materielRepository.UpdateCategorie_materielDetached(e); }
public void CreateCategorie_materiel(Categorie_materiel Categorie_materiel) { utOfWork.Categorie_materielRepository.Add(Categorie_materiel); }