Beispiel #1
0
        public JsonResult SaveCandidateName(int candidateId, string candidateName)
        {
            using (var candidateRepository = new CandidateRepository())
            {
                var result = candidateRepository.UpdateCandidateName(candidateId, candidateName, ElectionConductor.ElectionId((int)Session["UserId"]));

                return new JsonResult
                {
                    Data = new { isOk = result }
                };
            }
        }