public IActionResult Entrance() { List <SelectListItem> items = new List <SelectListItem>() { new SelectListItem() { Text = "Select Active position", Value = "", Selected = true } }; List <SelectListItem> geoItems = posService.GetActiveGeoInfos(0)?.ConvertAll(c => new SelectListItem() { Value = c.ToString(), Text = c.Details, Selected = false }); if (geoItems != null && geoItems.Count > 0) { items.AddRange(geoItems); } ViewBag.GeoInfos = items; string randomText = RandomText.GetString(6); PushModel defaultPushModel = new PushModel() { PushMessageType = PushMessageType.NearCirlce, SourceType = SourceType.TestCreate, PositionType = PushPositionType.Near, MessageModel = new PushMessageModel() { Content = $"content-{randomText}", //ImageUrls = null, } }; return(View(defaultPushModel)); }