public IActionResult Confirm(int id) { var db = new CandidateRepository(_connectionString); db.Confirm(id); return(Json(id)); }