public ActionResult Search(MemberPurchaseListViewModel memberPurchaseListViewModel)
        {
            if (memberPurchaseListViewModel == null)
            {
                return(Redirect("/Error"));
            }
            string search_id = memberPurchaseListViewModel.search_id;
            string mem_phone = Session["mem_phone"].ToString();

            ShopBusinessLogic.MemberPurchase memberPurchase = new ShopBusinessLogic.MemberPurchase();
            if (search_id == null)
            {
                var p_list = memberPurchase.getPurchaseLists(mem_phone).Select(p_info => new MemberPurchaseListViewModel()
                {
                    plist_id       = p_info.plist_id,
                    goods_id       = p_info.goods_id,
                    goods_name     = p_info.goods_name,
                    goods_img_path = memberPurchase.getGoods(p_info.goods_id).goods_img_path,
                    goods_num      = p_info.goods_num,
                    date           = p_info.date,
                    unit_price     = p_info.unit_price,
                    total_price    = p_info.total_price,
                }).ToList();
                var resView = new MemberPurchaseListViewModel()
                {
                    mem_phone      = mem_phone,
                    purchase_lists = p_list,
                };
                return(PartialView("PlistPart1", resView));
            }
            else
            {
                var p_list = memberPurchase.getPurchaseListsBySearchId(mem_phone, search_id).Select(p_info => new MemberPurchaseListViewModel()
                {
                    plist_id       = p_info.plist_id,
                    goods_id       = p_info.goods_id,
                    goods_name     = p_info.goods_name,
                    goods_img_path = memberPurchase.getGoods(p_info.goods_id).goods_img_path,
                    goods_num      = p_info.goods_num,
                    date           = p_info.date,
                    unit_price     = p_info.unit_price,
                    total_price    = p_info.total_price,
                }).ToList();
                var resView = new MemberPurchaseListViewModel()
                {
                    mem_phone      = mem_phone,
                    purchase_lists = p_list,
                };
                return(PartialView("PlistPart1", resView));
            }
        }