public String Eliminar(String identificacion) { if (repositoryFactura.Buscar(identificacion) == null) { return("Identificacion no encontrada"); } else { repositoryFactura.Eliminar(identificacion); return($"La persona con identificacion {identificacion} fue eliminada"); } }
public string EliminarMedicamento(Factura factura) { Conexion.Open(); try { if (repositoryFactura.BuscarFactura(factura) != null) { factura = (repositoryFactura.BuscarFactura(factura)); repositoryFactura.Eliminar(factura); Conexion.Close(); return("Se Eliminó La Factura " + factura.CodigoFactura + "Correctamente"); } else { Conexion.Close(); return("La Factura Con Ese Codigo No Existe"); } } catch (Exception) { throw; } }