public IActionResult Update(int id, [FromBody] Invoice invoice) { return(_invoice.update(id, invoice) ? new NoContentResult() : StatusCode(500)); }