public JsonResult getCandidates()
        {
            string            msg            = null;
            List <Candidates> listCandidates = new List <Candidates>();

            try
            {
                listCandidates = _cds.getCandidates();
            }
            catch (Exception ex)
            {
                msg = "Error:" + ex.Message;
            }
            return(Json(new { listCandidates = listCandidates, msg = msg }, JsonRequestBehavior.AllowGet));
        }