Exemplo n.º 1
0
        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"));
        }