Exemplo n.º 1
0
        public JsonResult GetAllNames()
        {
            CandidateBLL bll = new CandidateBLL();

            bll._conn = _configuration.GetConnectionString("ATSAppCon");
            List <string> lst = bll.GetAllNames();

            return(new JsonResult(lst));
        }
Exemplo n.º 2
0
        public JsonResult Put(CandidateInfo c)
        {
            CandidateBLL bll = new CandidateBLL();

            bll._conn = _configuration.GetConnectionString("ATSAppCon");
            bll.Put(c);

            return(new JsonResult("Updated Successfully"));
        }
Exemplo n.º 3
0
        public JsonResult Delete(int id)
        {
            CandidateBLL bll = new CandidateBLL();

            bll._conn = _configuration.GetConnectionString("ATSAppCon");
            bll.Delete(id);

            return(new JsonResult("Deleted Successfully"));
        }
Exemplo n.º 4
0
        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);
            }
        }