Example #1
0
 /// <summary>
 /// Obtiene todos los candidatos existentes
 /// </summary>
 public async Task <IReadOnlyCollection <Candidato> > FindAll() =>
 await repository.Find(
     entity => entity,
     entity => true,
     entity => entity.FechaDeContacto,
     OrderDirection.Descending
     );
 /// <summary>
 /// Obtiene todos las solicitudes existentes
 /// </summary>
 public async Task <IReadOnlyCollection <SolicitudVacante> > FindAll() =>
 await repository.Find(
     entity => entity,
     entity => true,
     entity => entity.FechaDeSolicitud,
     OrderDirection.Descending
     );
 public Task <Page <Usuario> > FindAll(int pageNumber, ushort pageSize)
 {
     return(repository.Find(
                entity => entity,
                entity => true,
                entity => entity.Nombre,
                new Pageable(pageNumber, pageSize, OrderDirection.Ascending)
                ));
 }