예제 #1
0
 public ActionResult GetAll([DataSourceRequest] DataSourceRequest dataSourceRequest, AchsenGridCommand command)
 {
     return(Json(GetGridModel(dataSourceRequest, command)));
 }
예제 #2
0
        private SerializableDataSourceResult GetGridModel([DataSourceRequest] DataSourceRequest dataSourceRequest, AchsenGridCommand command)
        {
            var models = achsensegmentService.GetCurrentModelsByName(command.AchsenName);

            return(new SerializableDataSourceResult(models.OrderBy(m => m.AchsenName).ToDataSourceResult(dataSourceRequest)));
        }