public async Task <ActionResult> GetAsync(string service, string id) { try { var stream = await _BadgeService.GetAsync(service, id); if (stream == null) { return(NotFound()); } return(File(stream, "image/svg+xml;charset=utf-8")); } catch { return(StatusCode(500)); } }