public JsonResult GetAllNames() { CandidateBLL bll = new CandidateBLL(); bll._conn = _configuration.GetConnectionString("ATSAppCon"); List <string> lst = bll.GetAllNames(); return(new JsonResult(lst)); }
public JsonResult Put(CandidateInfo c) { CandidateBLL bll = new CandidateBLL(); bll._conn = _configuration.GetConnectionString("ATSAppCon"); bll.Put(c); return(new JsonResult("Updated Successfully")); }
public JsonResult Delete(int id) { CandidateBLL bll = new CandidateBLL(); bll._conn = _configuration.GetConnectionString("ATSAppCon"); bll.Delete(id); return(new JsonResult("Deleted Successfully")); }
public CandidateEntryUI() { InitializeComponent(); aCast = new Cast(); aVotar = new Votar(); aMixedCandidateCastBll = new MixedCandidateCastBLL(); aCandidateBll = new CandidateBLL(); symbolComboBox.DisplayMember = "CandidateSymbol"; List <Candidate> candidates = new List <Candidate>(); aCastBll = new CastBLL(); candidates = aCandidateBll.GetSymbol(); foreach (Candidate symbol in candidates) { symbolComboBox.Items.Add(symbol); } }