Exemplo n.º 1
0
        public ActionResult EditUserDetails(User user)
        {
            HttpCookie MyCookie = Request.Cookies["UserEmail"];

            user.Email = MyCookie.Value;
            user.UpdateInDb();
            UserOrdersDal uo = new UserOrdersDal();

            uo.user = user;
            uo.GetUserOrder();
            return(View("Account", uo));
        }
Exemplo n.º 2
0
        public ActionResult Account()
        {
            HttpCookie MyCookie = Request.Cookies["UserEmail"];
            User       user     = new User();

            user.GetUser(MyCookie.Value);
            UserOrdersDal uo = new UserOrdersDal();

            uo.user = user;
            uo.GetUserOrder();
            return(View(uo));
        }