public bool PutProducto([FromBody] ProductoMDL objProducto) { bool resp = false; int actualizar = 2; ProductoMDL objInsertar = objProducto; try { string msg = string.Empty; ProductoDB service = new ProductoDB(objInsertar); resp = service.AGREGAR_ACTUALIZAR(actualizar, ref msg); } catch (Exception ex) { Console.WriteLine(ex); } return resp; }
public ProductoDB(ProductoMDL objProductoMDL) { prodModel = objProductoMDL; }