public ActionResult AddCandidates(Guid blockListId, Guid[] candidateIds) { try { // Look for the blocklist. var employer = CurrentEmployer; var blockList = _candidateBlockListsQuery.GetBlockList(employer, blockListId); if (blockList == null) { return(JsonNotFound("blocklist")); } // Add candidates. var count = _candidateListsCommand.AddCandidatesToBlockList(employer, blockList, candidateIds); return(Json(new JsonListCountModel { Id = blockListId, Count = count })); } catch (UserException ex) { ModelState.AddModelError(ex, new StandardErrorHandler()); } return(Json(new JsonResponseModel())); }