示例#1
0
        public ActionResult AvailablePermission(SelectDropDownItem model)
        {
            var finalList = new List <UserPrivilegeViewModel>();

            if (model.Id == 0)
            {
                return(PartialView(finalList));
            }
            var lstUserPrivilege = _userPrivilege.GetUserwisePrivilages(model.Id);

            finalList = (from up in lstUserPrivilege
                         join menu in _menu.GetAllAsync().Where(m => m.IsActive)
                         on up.MenuId equals menu.Id
                         select up
                         ).ToList();
            return(PartialView(finalList));
        }