Example #1
0
        // GET: Home
        public ActionResult Index()
        {
            HomeModel model = new HomeModel();
            if (Session["USR"] == null)
                return RedirectToAction("Login","Login");

            model.Email = ((LoginModel)Session["USR"]).User;

            HomeBLL BLL = new HomeBLL();
            model = BLL.CarregaUsuario(model);

            return View(model);
        }
Example #2
0
 public void LoadIndex(HomeModel model)
 {
     HomeBLL BLL = new HomeBLL();
     BLL.CarregaUsuario(model);
 }