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)); }
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)); }