Exemplo n.º 1
0
        public ActionResult ViewProfile()
        {
            var id = User.Identity.GetUserId();

            ViewBag.OrderHistory    = UserBus.OrderPurchase(id);
            ViewBag.PurchaseHistory = UserBus.PurchaseHistory(id);
            return(View(UserBus.Details(id)));
        }