protected void SaveLastSelectionToSession(int logic, string country, int cms_pool_id, int cms_location_group_id, int ops_region_id, int ops_area_id, string location, int?car_segment_id, int?car_class_id, int?car_group_id) { //Clear last selection session values SessionHandler.ClearLastSelectionSessionValues(); //Set session values if (!(logic == -1)) { SessionHandler.ULSLogic = logic; } if (!(country == null)) { SessionHandler.ULSCountry = country; } if (!(cms_pool_id == -1)) { SessionHandler.ULSCMSPoolId = cms_pool_id; } if (!(cms_location_group_id == -1)) { SessionHandler.ULSCMSLocationGroupCode = cms_location_group_id; } if (!(ops_region_id == -1)) { SessionHandler.ULSOPSRegionId = ops_region_id; } if (!(ops_area_id == -1)) { SessionHandler.ULSOPSAreaId = ops_area_id; } if (!(car_segment_id == -1)) { SessionHandler.ULSCarSegmentId = car_segment_id; } if (!(car_class_id == -1)) { SessionHandler.ULSCarClassId = car_class_id; } if (!(car_group_id == -1)) { SessionHandler.ULSCarGroupId = car_group_id; } if (!(location == null)) { SessionHandler.ULSLocation = location; } }