Beispiel #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)));
        }
Beispiel #2
0
        public JsonResult Details(string id)
        {
            var user = UserBus.Details(id);

            return(Json(new
            {
                data = user,
                status = true
            }, JsonRequestBehavior.AllowGet));
        }