public async Task <IActionResult> AddQueueItem([Bind("UserId,Amount")] Queue item) { if (ModelState.IsValid) { var result = await _queueService.AddQueueItem(item); return(Json(result)); } else { return(StatusCode(500)); } }