Esempio n. 1
0
        public JsonResult GenerateVotingCards()
        {
            object result = null;

            try
            {
                _votingCardSvc.GenerateVotingCards(new ShareHolderService(_context));
                result = new { Status = true, Message = "You have just generated All Voting Cards" };
            }
            catch (Exception ex)
            {
                result = new { Status = false, Message = ex.Message };
            }
            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Esempio n. 2
0
 public void GenerateVotingCardsShouldRecreateVotingCards()
 {
     _svc.GenerateVotingCards();
 }