// PUT: api/Inventario
        public IHttpActionResult Put([FromBody] InventarioViewModel model)
        {
            // Validation logic errors
            BL.ValidacionUnique(model);
            if (BL.jresult.hasError())
            {
                return(Json(BL.jresult));
            }

            // Normal fluent
            var jresult = BL.UpdInventario(model);

            if (jresult.Success)
            {
                return(Ok(jresult));
            }
            else
            {
                // Internal errors
                return(Json(jresult));
            }
        }