public ActionResult GetAll([DataSourceRequest] DataSourceRequest dataSourceRequest, AchsenGridCommand command) { return(Json(GetGridModel(dataSourceRequest, command))); }
private SerializableDataSourceResult GetGridModel([DataSourceRequest] DataSourceRequest dataSourceRequest, AchsenGridCommand command) { var models = achsensegmentService.GetCurrentModelsByName(command.AchsenName); return(new SerializableDataSourceResult(models.OrderBy(m => m.AchsenName).ToDataSourceResult(dataSourceRequest))); }