public ViewResult Index(int?page, Sorting.SortValue?sortedBy, bool?asc) { var operations = operationsManager.getOperations(); var operationsModel = operations .Select(Mapper.Map <OperationViewModel>); OperationsListViewModel model = new OperationsListViewModel(); SortOperations(model, sortedBy, asc); PaginateOperations(model, page); return(View(model)); }