public async Task <IActionResult> Delete(int id) { if (await formatService.DeleteAsync(id)) { return(new NoContentResult()); } else { return(NotFound()); } }