static ExtGetVehicleSpecifications Create(SearchVehicleCriteria criteria) { ExtGetVehicleSpecifications inv = new ExtGetVehicleSpecifications(); inv.ExtApplicationArea = new ExtApplicationArea(); inv.ExtApplicationArea.CreationDateAndTime = DateTime.UtcNow.ToString("o"); CreateHardCoded(inv); return inv; }
static ExtGetVehicleSpecifications GetYearSearch(SearchVehicleCriteria criteria) { var inv = Create(criteria); var year = inv.ExtGetVehicleSpecificationsDataArea.ExtGet.VehicleSelectorCriteria = new VehicleSelectorCriteria(); year.MethodName = "GetAllYears"; year.Year = new Year(); year.Year.FromYear = "1980"; year.Year.ToYear = "9999"; return inv; }
public static ExtGetVehicleSpecifications GetSearch(SearchVehicleCriteria criteria) { if (string.IsNullOrEmpty(criteria.Year)) return GetYearSearch(criteria); if (string.IsNullOrEmpty(criteria.Make)) return GetYearSearch(criteria); if (string.IsNullOrEmpty(criteria.ModelCode)) return GetYearSearch(criteria); return null; }