// GET: /Country/Create
        public ActionResult CityEdit(string id)
        {
            var data = (from c in db.cities.AsEnumerable()
                        where c.city_id == Convert.ToInt32(id)
                        select new
            {
                country_id = c.state.country_id,
                state_idList = stateUtil.GetStateSelectList(c.state.country_id),
                city_name = c.city_name,
                state_id = c.state_id,
                city_id = c.city_id,
                is_active = c.is_active,
            }).FirstOrDefault();

            return(Json(data));
        }
        public ActionResult LoadCompanyDetail(int id)
        {
            int     company_id = Convert.ToInt32(id);
            company company    = new company();

            company = company_id > 0 ? db.companies.Find(company_id) : company;
            if (company != null)
            {
                ViewBag.country_id = new SelectList(countryUtil.GetCountrySelectList(), "Value", "Text", company.state_id != null ? company.state.country_id : 0);
                ViewBag.StateName  = company.state != null?stateUtil.GetStateSelectList(company.state.country_id) : stateUtil.GetStateName();

                ViewBag.TimeZone = STUtil.GetTimeZoneInfo();
            }
            return(PartialView("_CompanyDetail", company));
        }