Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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));
        }