Ejemplo n.º 1
0
        public ActionResult Upload(int id)
        {
            SachDao dao = new SachDao();
            var     sp  = dao.Detail(id);

            return(View(sp));
        }
Ejemplo n.º 2
0
        public ActionResult Detail(int id)
        {
            SachDao dao = new SachDao();
            var     rs  = dao.Detail(id);

            if (rs != null)
            {
                ViewBag.Detail = rs;
            }
            return(View());
        }
Ejemplo n.º 3
0
        public ActionResult Edit(int id)
        {
            LoaiSachDao lsp = new LoaiSachDao();
            var         lSp = lsp.ListOf();



            ViewBag.LSP = lSp;

            SachDao dao = new SachDao();
            var     sp  = dao.Detail(id);

            return(View(sp));
        }