Example #1
0
        // GET: Admin/Sach/Create
        public ActionResult Create()
        {
            LoaiSachDao lsp1 = new LoaiSachDao();
            var         lSp1 = lsp1.ListOf();

            ViewBag.LSP = lSp1;
            return(View());
        }
Example #2
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));
        }