示例#1
0
        public ActionResult UpdateStatus()
        {
            var repo = new CandidatesRepository(Properties.Settings.Default.ConStr);

            return(Json(new { Pending = repo.GetPendingCount(), Confirmed = repo.GetConfirmedCount(), Refused = repo.GetRefusedCount() }, JsonRequestBehavior.AllowGet));
        }