public SkelbiuLtUrlFilter() { Page = 1; AdType = new UrlFilterModel("type", AdTypes.Sales); Category = new UrlFilterModel("category_id"); Keywords = new UrlFilterModel("keywords"); Price = new MinMaxUrlFilterModel("cost"); Area = new MinMaxUrlFilterModel("space"); Rooms = new MinMaxUrlFilterModel("rooms"); Year = new MinMaxUrlFilterModel("year"); Floor = new MinMaxUrlFilterModel("floor"); Cities = new ListUrlFilterModel <CityCodes>("cities"); BuildingType = new UrlFilterModel("distance"); // Set building types FloorType = new UrlFilterModel("floor_type");; // Set floor types Submit = new UrlFilterModel("submit_bn"); // ?? }
public MinMaxUrlFilterModel(string text, string minValue = null, string maxValue = null) { Text = text; MinValue = new UrlFilterModel($"{Text}_min", minValue); MaxValue = new UrlFilterModel($"{Text}_max", maxValue); }