/// <summary> /// Function to view all details for Search based on parameter /// </summary> /// <param name="strBrandName"></param> /// <param name="strCategoryname"></param> /// <returns></returns> public List <DataTable> ServiceSearch(string strBrandName, string strCategoryname) { List <DataTable> listObj = new List <DataTable>(); try { listObj = spService.ServiceSearch(strBrandName, strCategoryname); } catch (Exception ex) { MessageBox.Show("AL35:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } return(listObj); }
/// <summary> /// Service Search function /// </summary> /// <param name="strBrandName"></param> /// <param name="strCategoryname"></param> public void ServiceSearch(string strBrandName, string strCategoryname) { try { ServiceSP spService = new ServiceSP(); ServiceInfo infoService = new ServiceInfo(); DataTable dtblService = new DataTable(); dtblService = spService.ServiceSearch(strBrandName, strCategoryname); dgvService.DataSource = dtblService; } catch (Exception ex) { MessageBox.Show("Ser9:" + ex.Message, "OpenMiracle", MessageBoxButtons.OK, MessageBoxIcon.Information); } }