//Retorna o lote de importação pelo id informado. public async Task <ImportBatche> GetByIdAnythingAsync(ImportBatche ImportBatche) { var result = await SearchByIdAsync("import_batches", ImportBatche.Id); return(FromDynamicTo <ImportBatche>(result?.import_batche)); }
//Retorna todos os lotes de importação. public async Task <IEnumerable <ImportBatche> > GetByAnythingAsync(ImportBatche ImportBatche, IDictionary <FilterSearch, String> Query = null, Int32 Page = 1, Int32 PerPage = 20, FilterSearch filterSearch = FilterSearch.id, SortOrder sortOrder = SortOrder.asc) { var list = await SearchByAnythingAsync("import_batches", Query, Page, PerPage, filterSearch, sortOrder); return(FromDynamicTo <IEnumerable <ImportBatche> >(list?.import_batches)); }