Exemplo n.º 1
0
 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");
     }
 }
Exemplo n.º 2
0
 private void BtnDelete_Click(object sender, EventArgs e)
 {
     _RESTSoporteAdmediaService.Delete("1");
 }