Esempio n. 1
0
        public ActionResult XoaGiaoVien()
        {
            if (!HttpContext.User.Identity.IsAuthenticated)
            {
                return RedirectToAction("DanhSachGiaoVien", "GiaoVien");
            }
            if (HttpContext.Request["id"] == null || HttpContext.Request["id"].Equals(""))
                return RedirectToAction("DanhSachGiaoVien", "GiaoVien");

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

            return RedirectToAction("DanhSachGiaoVien", "GiaoVien");
        }