public IHttpActionResult AddStatus([FromUri] int itemId, [FromUri] int statId) { bool asignacion = _ItemService.AsignStat(itemId, statId); if (!asignacion) { return(BadRequest("Unable to asign the stat")); } var payload = new { item = itemId, Status = statId }; return(Ok(payload)); }