Esempio n. 1
0
		private void detach_VoteByUsers(VoteByUser entity)
		{
			this.SendPropertyChanging();
			entity.VoteUser = null;
		}
Esempio n. 2
0
        public ActionResult Vote( String returnUrl )
        {
            var voteByUser = new VoteByUser
                             {
                                 user_id = voteRepository.GetUserId( User.Identity.Name ),
                                 vote_id = Int64.Parse( Request.Form["vote_id"] ),
                                 answer_n = Int32.Parse( Request.Form["answer_order_n"] )
                             };
            voteRepository.Vote( voteByUser );

            return Redirect( returnUrl );
        }
Esempio n. 3
0
		private void attach_VoteByUsers(VoteByUser entity)
		{
			this.SendPropertyChanging();
			entity.VoteUser = this;
		}
Esempio n. 4
0
 partial void DeleteVoteByUser(VoteByUser instance);
Esempio n. 5
0
 partial void UpdateVoteByUser(VoteByUser instance);
Esempio n. 6
0
 partial void InsertVoteByUser(VoteByUser instance);
Esempio n. 7
0
 public void Vote( VoteByUser voteByUser )
 {
     _db.VoteByUsers.InsertOnSubmit( voteByUser );
     Save();
 }