// GET: SignUp public ActionResult Index() { if (Session["UserClientSite"] != null) { return(RedirectToAction("Index", "Home", new { area = "" })); } RegisterModels model = new RegisterModels(); model.ListCounTry = _BaseFactory.GetListCountry(); // var CountryCode = _checkIpFactory.GetCountryCode(); if (model.ListCounTry != null) { var ListCountry = model.ListCounTry as List <CountryModel>; var objCountry = ListCountry.Where(x => x.Alpha2Code.Equals(CountryCode)).FirstOrDefault(); model.MerchantDetail.Country = model.CustomerDetail.HomeCountry = model.CustomerDetail.OfficeCountry = objCountry != null ? objCountry.Name : ""; model.MerchantDetail.CreatedDate = CommonHelper.ConvertToLocalTime(model.MerchantDetail.CreatedDate); model.MerchantDetail.ExpiredDate = CommonHelper.ConvertToLocalTime(model.MerchantDetail.ExpiredDate); } return(View(model)); }