public ActionResult AddEditCity(EasyFreight.Models.City cityDb)
        {
            #region Check Rights
            bool hasRights;
            if (cityDb.CityId == 0) //Check export rights
            {
                hasRights = AdminHelper.CheckUserAction(ScreenEnum.CitiesLibrary, ActionEnum.Add);
            }
            else
            {
                hasRights = AdminHelper.CheckUserAction(ScreenEnum.CitiesLibrary, ActionEnum.Edit);
            }

            if (!hasRights)
            {
                return(Json("false. You are UnAuthorized to do this action"));
            }

            #endregion
            string isSaved = LibraryCommonHelper.AddEditCities(cityDb);
            if (isSaved != "true")
            {
                return(Json(isSaved));
            }
            var citiesList = LibraryCommonHelper.GetCitiesListByCountryId(0);
            return(PartialView("~/Areas/MasterData/Views/CountryLibrary/_CityTable.cshtml", citiesList));
        }
        public ActionResult CityLibrary()
        {
            var citiesList = LibraryCommonHelper.GetCitiesListByCountryId(0);

            ViewData["CountryList"] = ListCommonHelper.GetCountryList();
            return(View(citiesList));
        }