public ActionResult Create(CreateCostOfLivingInfoView createModel)
        {
            var service = new CountryInfoService();
            var model   = AutoMapper.Mapper.Map <CreateCostOfLivingInfoView, CostOfLivingInfo>(createModel);

            Session["CreateTxt"] = service.CreateCostOfLiving(model);
            return(RedirectToAction("Index"));
        }
        public ActionResult Create(int?countryInfoId, string type)
        {
            ViewBag.PriceType = type;
            var userService = new UserService();
            var service     = new CountryInfoService();

            var model = new CreateCostOfLivingInfoView();

            model.CountryInfoID     = (int)countryInfoId;
            model.PriceForTypeID    = service.GetPriceForType(type).Id;
            model.ApplicationUserId = userService.GetUser(User.Identity.Name).Id;
            return(View("CreateCostOfLife", model));
        }