private static IViewFactory OnMoviesAll(IRequest request) { async Task <object> result() { DataRepository repository = new DataRepository(); RutorCollection collection = await repository.Get <RutorCollection>(); int?page = request.Payload; return(collection.Group(page.GetValueOrDefault(0)).ToArray()); } return(ControlView.PayloadAsync <RutorMovieListView>(result)); }