Ejemplo n.º 1
0
 private static List <FieldDefinition> GetFieldDefinitionsAndGridSpec(out FieldDefinitionGridSpec gridSpec, FirmaSession currentFirmaSession)
 {
     gridSpec = new FieldDefinitionGridSpec(new FieldDefinitionViewListFeature().HasPermissionByFirmaSession(currentFirmaSession));
     return(HttpRequestStorage.DatabaseEntities.FieldDefinitions.ToList()
            .Where(x => new FieldDefinitionManageFeature().HasPermission(currentFirmaSession, x).HasPermission)
            .OrderBy(x => x.GetFieldDefinitionLabel()).ToList());
 }
Ejemplo n.º 2
0
 private static List <FieldDefinition> GetFieldDefinitionsAndGridSpec(out FieldDefinitionGridSpec gridSpec, Person currentPerson)
 {
     gridSpec = new FieldDefinitionGridSpec(new FieldDefinitionViewListFeature().HasPermissionByPerson(currentPerson));
     return(FieldDefinition.All.Where(x => new FieldDefinitionManageFeature().HasPermission(currentPerson, x).HasPermission).OrderBy(x => x.GetFieldDefinitionLabel()).ToList());
 }