public ActionResult Create(CardViewModel model)
        {
            var ts = (TravelSession)Session["TravelSessionInfo"];

            //model.CreatedBy = ts.AppUserId;
            model.isActive     = true;
            model.CardStatusId = 1;
            model.CardRule     = _Cardrepo.GetCardRule(model.CardTypeId);
            bool flag;

            flag = _Cardrepo.CheckDuplicateCardNumber(model.CardNumber);
            if (flag == true)
            {
                //TempData["Card Rule"] = _Cardrepo.GetCardRule(model.CardTypeId);
                _Cardrepo.CreateCard(model);
            }
            else
            {
                return(RedirectToAction("Index"));
            }
            return(RedirectToAction("Index"));
        }