public PartialViewResult UserToInstAssignmentList(int InstId) { var model = new UserToInstAssignmentListViewModel(); model.ShowUser = true; model.ShowInst = false; model.UserToInstAssignments = InstAssignmentRep.FindBy(i => i.institution_id == InstId).OrderBy(i => i.IdentityUser.LastName).ToList(); return(PartialView(model)); }
public PartialViewResult UserToInstAssignmentList(int IdentityUserId) { var model = new UserToInstAssignmentListViewModel(); model.ShowUser = false; model.ShowInst = true; model.UserToInstAssignments = InstAssignmentRep.FindBy(i => i.user_id == IdentityUserId).OrderBy(i => i.Institution.City.name).ThenBy(i => i.Institution.name).ToList(); return(PartialView(model)); }