Ejemplo n.º 1
0
        public ActionResult UserProfile()
        {
            var result = UserInfoRepo.GetById(HttpUtil.Current.ID);

            if (result.HasError)
            {
                ViewBag.Error = result.Message;
                return(RedirectToAction("Index", "Admin"));
            }

            var userProfile = new UserInfo();

            return(View(result));
        }