public ActionResult EditUser(string id) { UserEditVM data = new UserEditVM(); data.User = _repo.AdminGetUserByGuid(id); data.UserProfile = _repo.GetProfileById(data.User.ProfileId); data.Roles = _repo.AdminGetRoles(); return(View(data)); }
// GET: Profile public ActionResult List(int id) { var model = _repo.GetProfileById(id); return(View(model)); }