コード例 #1
0
ファイル: PhongController.cs プロジェクト: daibx/tkb-g9
        public ActionResult XoaPhong()
        {
            if (!HttpContext.User.Identity.IsAuthenticated)
            {
                return RedirectToAction("DanhSachPhong", "Phong");
            }
            if (HttpContext.Request["id"] == null || HttpContext.Request["id"].Equals(""))
                return RedirectToAction("DanhSachPhong", "Phong");

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

            return RedirectToAction("DanhSachPhong", "Phong");
        }