public ActionResult Details(string id) { if (String.IsNullOrEmpty(id)) { return(View()); } var contact = _aspNetUsersService.GetUser(id); var model = _mapper.Map <IdentityUserViewModel>(contact); return(View(model)); }