public void Insert(VoteViewModel model) { var mapper = CustomMapperConfiguration.ConfigCreateMapper <VoteViewModel, Vote>(); var vote = mapper.Map <VoteViewModel, Vote>(model); _votesRepository.Insert(vote); }
public void Insert(VoteViewModel model) { var mapper = CustomMapperConfiguration.ConfigCreateMapper <VoteViewModel, Vote>(); var vote = mapper.Map <VoteViewModel, Vote>(model); _votesRepository.Insert(vote); }