public ActionResult <string> GetAllCandidates() { var candidate = new Candidate(); return(JsonConvert.SerializeObject(candidate.AllCandidates())); }