public ActionResult show(string id) { MembershipUser sig_user = Membership.GetUser(new Guid(id)); CountryRepository cr = new CountryRepository(); ViewData["user"] = sig_user; ViewData["roles"] = Roles.GetRolesForUser(sig_user.UserName); ViewData["all_roles"] = Roles.GetAllRoles(); ViewData["profile"] = Profile.GetProfile(sig_user.UserName); VwCountry country = new VwCountry(); try { country = cr.getCountry(Profile.GetProfile(sig_user.UserName).country_id); ViewData["country"] = country.CtyShort; }catch { ViewData["country"] = ""; } return(View()); }
public ActionResult show(string id) { MembershipUser sig_user = Membership.GetUser(new Guid(id)); CountryRepository cr = new CountryRepository(); ViewData["user"] = sig_user; ViewData["roles"] = Roles.GetRolesForUser(sig_user.UserName); ViewData["all_roles"] = Roles.GetAllRoles(); ViewData["profile"] = Profile.GetProfile(sig_user.UserName); VwCountry country = new VwCountry(); try { country = cr.getCountry(Profile.GetProfile(sig_user.UserName).country_id); ViewData["country"] = country.CtyShort; }catch { ViewData["country"] = ""; } return View(); }