public ActionResult GetLocationOptions()

in Webapp/SDAF/Controllers/ArmclientController.cs [85:108]


        public ActionResult GetLocationOptions(bool useRegionMapping = false)
        {
            List<SelectListItem> options =
      [
                new SelectListItem { Text = "", Value = "" }
            ];
            try
            {
                Dictionary<string, string> regionMapping = Helper.regionMapping;
                foreach (string region in regionMapping.Keys)
                {
                    options.Add(new SelectListItem
                    {
                        Text = region,
                        Value = useRegionMapping ? Helper.MapRegion(region).ToUpper() : region
                    });
                }
            }
            catch
            {
                return null;
            }
            return Json(options);
        }