コード例 #1
0
        public QuestaoViewModel Add(QuestaoViewModel obj)
        {
            var questao = Mapper.Map <QuestaoViewModel, Questao>(obj);

            BeginTransaction();
            _questaoService.Add(questao);
            Commit();
            return(obj);
        }