public IHttpActionResult GetAllWidgets() { var result = _metricsService.GetAllWidgets(); if (result == null) { return(NotFound()); } return(Ok(result)); }