private void btnDelete_Click(object sender, EventArgs e) { try { string ProductId = txtIdDelete.Text; var statusCode = _RESTProductService.Delete(ProductId); this.SetEstado("Se actualizo el producto correctamente"); } catch (NotResourceFoundException) { this.SetEstado("No existe el produto con id: " + txtIdProductGet.Text); } catch (InternalErrorException) { this.SetEstado("Error al obtener el producto"); } }
private void BtnDelete_Click(object sender, EventArgs e) { _RESTSoporteAdmediaService.Delete("1"); }