public void searchactivity(string mode, Guid Activity_Id, out List <MDMSVC.DC_Activity> res) { MDMSVC.DC_Activity_Search_RQ RQParams = new MDMSVC.DC_Activity_Search_RQ(); RQParams.PageNo = PageIndex; RQParams.PageSize = int.Parse(ddlPageSize.SelectedItem.Value); if (mode == "") { if (ddlCountry.SelectedValue != "0") { RQParams.Country = ddlCountry.SelectedItem.Text; } if (ddlCity.SelectedValue != "0") { RQParams.City = ddlCity.SelectedItem.Text; } if (ddlCKISType.SelectedValue != "0") { RQParams.ProductCategorySubType = ddlCKISType.SelectedItem.Text; } if (ddlCKISActivityType.SelectedValue != "0") { RQParams.ProductCategory = ddlCKISActivityType.SelectedItem.Text; } if (!string.IsNullOrEmpty(txtHotelName.Text)) { RQParams.Name = txtHotelName.Text; } if (ddlStatus.SelectedValue != "0") { RQParams.Status = ddlStatus.SelectedItem.Text; } } else if (mode.ToUpper() == "BYID") { if (Activity_Id != Guid.Empty) { RQParams.Activity_Id = Activity_Id; } } res = mastersvc.GetActivityMaster(RQParams); }