public Roles CreateComposite(Roles entity) { int a = 0; List <Arbol> roles = new List <Arbol>(); roles = ObtenerPermisosORolesDeUnRol(entity.permiso.Id); foreach (var item in roles) { if (item.Id == entity.Id) { a = 1; } } if (a == 1) { return(null); } else { RolesDAC rolesDAC = new RolesDAC(); return(rolesDAC.CreateComposite(entity)); } }
public Roles CreateComposite(Roles entity) { RolesDAC rolesDAC = new RolesDAC(); return(rolesDAC.CreateComposite(entity)); }