Beispiel #1
0
 public ActionResult Contact()
 {
     if (Session["userLogin"] == null)
     {
         return(Redirect("~/admin/Login/Index"));
     }
     else
     {
         var xuly        = new Func_TaiKhoan();
         int idTinhTrang = (int)Session["IDTinhTrang"];
         ViewBag.user    = xuly.getThongTin(idTinhTrang);
         ViewBag.Message = "Your contact page.";
         return(View());
     }
 }
        public ActionResult NecessaryInfomation()
        {
            if (Session["userLogin"] == null)
            {
                return(Redirect("~/admin/Login/Index"));
            }
            else
            {
                var xuly = new Func_TaiKhoan();

                ViewBag.user = xuly.getThongTin((int)Session["IDTinhTrang"]);
                tbl_taikhoan tk = xuly.getTaiKhoan((string)Session["userLogin"]);
                ViewBag.idBook = tk.id;

                return(View());
            }
        }