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())); }