public async Task <ActionResult> LoadAnomaly(string tabletId) { if (ModelState.IsValid) { string fileName = await _loadService.BuildAnomaly(tabletId); return(File(fileName, "image/png")); } return(StatusCode(500)); }