public IActionResult Delete(string id) { var Factura = _FacturaService.Get(id); if (Factura == null) { return(NotFound()); } _FacturaService.Remove(Factura.Id); return(NoContent()); }