public MethodResponse <string> PutProduct(object infoProduct) { var response = new MethodResponse <string>(); try { var logic = new LogicEngine(); var res = logic.UpdateProduct(infoProduct); if (int.Parse(res.Code.ToString()) != 0) { return(new MethodResponse <string>() { Code = res.Code, Message = res.Message }); } response = res; return(response); } catch (Exception ex) { return(new MethodResponse <string>() { Code = -1, Message = "Ocurrio un error al actualizar los productos: " + ex.Message }); } }