// GET: api/Inventario/5 public IHttpActionResult Get([FromUri] int id) { var jresult = BL.GetInventario((int)id); if (jresult.Success) { return(Ok(jresult)); } else { return(Json(jresult)); } }