Exemplo n.º 1
0
        public ActionResult XoaLop()
        {
            if (!HttpContext.User.Identity.IsAuthenticated)
            {
                return RedirectToAction("DanhSachLop", "Lop");
            }
            if (HttpContext.Request["id"] == null || HttpContext.Request["id"].Equals(""))
                return RedirectToAction("DanhSachLop", "Lop");

            int id = Int32.Parse(HttpContext.Request["id"]);
            G9Service.G9_Service ws = new G9Service.G9_Service();
            bool result = ws.XoaLop(id);

            return RedirectToAction("DanhSachLop", "Lop");
        }