public ActionResult Emprunt(int id) { Adherent user = new Adherent(); user = AS.GetById((int)Session["currentUser"]); Document dc = new Document(); dc = DS.GetById(id); ES.Emprunter(dc, user); return(RedirectToAction("Index")); }
public ActionResult Emprunt(int id) { Adherent user = new Adherent(); user = AS.GetById((int)Session["currentUser"]); Document dc = new Document(); dc = DS.GetById(id); ES.Emprunter(dc, user); return(RedirectToAction("Index")); }