// GET: CustomCardTBs
        public ActionResult Index(string name)
        {
            IEnumerable <CustomCardTB> cardList = new List <CustomCardTB>();

            var repo = new CustomCardRepo();

            if (!string.IsNullOrEmpty(name))
            {
                cardList = repo.SearchCustomCard(name);
            }
            else
            {
                cardList = db.CustomCardTBs.ToList();
            }
            return(View(cardList));
            //return View(db.CustomCardTBs.ToList());
        }
        public ActionResult YourCards(string name)
        {
            IEnumerable <CustomCardTB> cardList = new List <CustomCardTB>();

            cardList = db.CustomCardTBs.ToList();;
            var repo = new CustomCardRepo();


            if (Session["Id"] != null)
            {
                cardList = repo.GetCustomCards(Int32.Parse(Session["Id"].ToString()));
                if (!string.IsNullOrEmpty(name))
                {
                    cardList = repo.SearchUserCustomCard(name, Int32.Parse(Session["Id"].ToString()));
                }
                return(View(cardList));
            }
            else
            {
                return(View());
            }
        }