public IActionResult Profile(string id) { User pUser = lIUserRepository.getUser(id); if (pUser != null) { UserViewModelNPINotRequired _user = UserExtension.UserToUserViewModelNPINotRequired(pUser); ViewBag.Name = _user.Name; return(View(_user)); } else { return(View(null)); } }