コード例 #1
0
        public IHttpActionResult GetGeoData()
        {
            IWidgetManager widgetManager = new WidgetManager();
            Widget         geoWidget     = widgetManager.GetGeoLocationWidget();

            if (geoWidget == null)
            {
                return(NotFound());
            }

            List <WidgetDataDTO> widgetDto = Mapper.Map(geoWidget?.WidgetDatas, new List <WidgetDataDTO>());

            return(Ok(widgetDto.FirstOrDefault()));
        }