예제 #1
0
        public ActionResult EditAndCreate(VoteModel vote)
        {
            BVote oldVote = AutoMapper <VoteModel, BVote> .Map(vote);

            voteService.CreateOrUpdate(oldVote);
            return(RedirectToActionPermanent("Index", "Books"));
        }