public IHttpActionResult BuyItems(IEnumerable <Item> items) { var success = _itemService.BuyItems(items, User.Identity.GetUserId()); if (success) { return(Ok()); } else { return(BadRequest()); } }