public void Delete() { using (ProveedoresRepository repo = new ProveedoresRepository(DataContext)){ repo.Delete(_id); } }
public ActionResult <Proveedor> DeleteProveedor(int id) { return(Ok(_repository.Delete(id))); }