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)); }
public void GenerateVotingCardsShouldRecreateVotingCards() { _svc.GenerateVotingCards(); }