Ejemplo n.º 1
0
        public IActionResult Profile()
        {
            SetSessionInfo();
            int userId = int.Parse(ViewBag.id);

            DataTable user  = _serviceFactory.User.GetProfile(userId);
            var       model = DataExtensions.GetItem <ProfileViewModel>(user.Rows[0]);

            return(View(model));
        }