// GET: ProductInfo
        public ActionResult Index(SearchVM obj)
        {
            _productInfoBAL = new ProductInfoBAL();
            _cAS_ProductInfoVMList = new List<CAS_ProductInfoVM>();
            _searchVM = new SearchVM();
            _productInfoSearch = new ProductInfoSearch();
            try
            {
                obj = obj ?? new SearchVM();
                SearchVM objjsearch = Session["searchvm"] != null ? Session["searchvm"] as SearchVM : obj;
                objjsearch.PageCurrentIndex = obj.PageCurrentIndex <= 0 ? 0 : obj.PageCurrentIndex;

                int totalcount;

                _cAS_ProductInfoVMList = _productInfoBAL.GetAllProductData(objjsearch, out totalcount);
                _productInfoSearch.TotalCount = totalcount;
                _productInfoSearch.SearchExpression = objjsearch;
                _productInfoSearch.CAS_ProductInfoVM = _cAS_ProductInfoVMList;
            }
            catch (Exception ex)
            {

            }

            return View(_productInfoSearch);
        }