public ActionResult GetProduct(string SelectCategory, string SelectFashionFor) { try { List <DLProducts> list = new List <DLProducts>(); if (!String.IsNullOrEmpty(SelectCategory) && !String.IsNullOrEmpty(SelectFashionFor)) { SelectCategory = SelectCategory.Trim(); SelectFashionFor = SelectFashionFor.Trim(); list = balCustomer.FilterProduct(SelectCategory, SelectFashionFor, "FashionForCategory"); } else if (!String.IsNullOrEmpty(SelectCategory)) { SelectCategory = SelectCategory.Trim(); SelectFashionFor = SelectFashionFor.Trim(); list = balCustomer.FilterProduct(SelectCategory, SelectFashionFor, "Category"); } else if (!String.IsNullOrEmpty(SelectFashionFor)) { SelectCategory = SelectCategory.Trim(); SelectFashionFor = SelectFashionFor.Trim(); list = balCustomer.FilterProduct(SelectCategory, SelectFashionFor, "FashionFor"); } else { list = balProduct.LoadData(); } ViewBag.ProductList = list; return(PartialView("_PartialProduct")); } catch (Exception ex) { throw ex; } }