diff --git a/src/MapsDb/DataService/BusStopDs.cs b/src/MapsDb/DataService/BusStopDs.cs index dd1ca30..311864b 100644 --- a/src/MapsDb/DataService/BusStopDs.cs +++ b/src/MapsDb/DataService/BusStopDs.cs @@ -19,7 +19,8 @@ namespace MapsDb.DataService } private IList GetAllBusStop(PaginationDsM pagination) { - var data = _context.BusStop.Select(BusStop => new BusStopEditDsM + var filter = "Крым"; + var data = _context.BusStop.Where(x => x.Region.Name == filter ).Select(BusStop => new BusStopEditDsM { Id = BusStop.Id, RoadId = BusStop.RoadId, @@ -36,6 +37,7 @@ namespace MapsDb.DataService YearRepair = BusStop.YearRepair, StateCommonId = BusStop.StateCommonId }).Skip(pagination.from).Take(pagination.perPage); + switch (pagination.orderType()) { case "ASC": -- libgit2 0.21.4