Пример #1
0
        public List <SetorDTO> ListarPeloFiltro(SetorFiltro filtro, out int totalRegistros)
        {
            var specification = (Specification <Setor>) new TrueSpecification <Setor>();


            return(SetorRepository.ListarPeloFiltroComPaginacao(
                       specification,
                       filtro.PaginationParameters.PageIndex,
                       filtro.PaginationParameters.PageSize,
                       filtro.PaginationParameters.OrderBy,
                       filtro.PaginationParameters.Ascending,
                       out totalRegistros).To <List <SetorDTO> >());
        }
Пример #2
0
 public SetorViewModel()
 {
     Filtro = new SetorFiltro();
 }