public IQueryable <MenuUserAuthorizationListDTO> AuthorizationUserGroupEdit(MenuUserGroupAuthorizationRequestDTO src) { var result = _context.BackendMenus.Where(x => x.Isactive == true).OrderBy(x => x.Id).GroupJoin(_context.UserAuthorizations.Where(x => x.Groupid == src.Groupid), s => s.Id, a => a.BakendMenuId, (s, a) => new { s, a }).SelectMany(m => m.a.DefaultIfEmpty(), (m, s) => new MenuUserAuthorizationListDTO { BakendMenuId = m.s.Id, Groupid = s.Groupid, Name = m.s.Name, Islist = s.Islist ?? false, Issave = s.Issave ?? false, Isupdate = s.Isupdate ?? false, Isdelete = s.Isdelete ?? false, }); return(result); }
public IEnumerable <MenuUserAuthorizationListDTO> AuthorizationUserGroupEdit(MenuUserGroupAuthorizationRequestDTO src) { return(_userGroupDal.AuthorizationUserGroupEdit(src)); }