public ActionResult EditAndCreate(VoteModel vote) { BVote oldVote = AutoMapper <VoteModel, BVote> .Map(vote); voteService.CreateOrUpdate(oldVote); return(RedirectToActionPermanent("Index", "Books")); }
public ActionResult EditAndCreate(VoteModel vote) { BVote oldVote = AutoMapper <VoteModel, BVote> .Map(vote); voteService.CreateOrUpdate(oldVote); return(RedirectToActionPermanent("Index", "Books")); }