//kreiraj metodu Find-vracat ce LIST public async Task <IPagedList <VehicleModel> > FindAsync(IFilter filter, ISort sort, IPaging <VehicleModel> paging) { string SortOrder = sort.SortOrder; string CurrentFilter = filter.CurrentFilter; string SearchString = filter.SearchString; int? pageNumber = filter.pageNumber; List <VehicleModel> VehicleModelList = await context.VehicleModels.Include(m => m.VehicleMake).ToListAsync(); var listFilter = await filter.FilteringAsync(VehicleModelList, SearchString, CurrentFilter); var sortModel = await sort.OrderingAsync(listFilter.ToList(), SortOrder); var pagedModel = await paging.PagingListAsync(sortModel); return(pagedModel); }