Ejemplo n.º 1
0
        public ActionResult PhanKM()
        {
            if (Session["TaiKhoan"] != null)
            {
                var tk = Session["TaiKhoan"] as KhachHang;


                if (tk.LoaiTK == "Khách Hàng")
                {
                    return(View("../Home/Index"));
                }
                else
                {
                    KinhDAO dao = new KinhDAO();
                    Session["ListCKM"] = dao.GetListChuaKM();
                    return(View());
                }
            }
            else
            {
                return(View("../DangNhap/Index"));
            }
        }