Ejemplo n.º 1
0
        public ActionResult Vote(VotingFormModel votingForm)
        {
            User   user;
            String userId = null;

            //userId = HttpContext.Response.Cookies["id"].Value;

            if (userId != null)
            {
                user = _userService.GetUserByUserName(HttpContext.Response.Cookies["id"].Value);
                _votingService.Vote();
            }
            else
            {
                _votingService.AnonymousVote();
            }


            return(View());
        }