Пример #1
0
        public ThoughtModel Save(ThoughtModel thought)
        {
            var           entity = thought.Map <ThoughtEntity>();
            ThoughtEntity result = _thoughtRepository.Save(entity);

            return(result.Map <ThoughtModel>());
        }
Пример #2
0
        public ThoughtModel Create(ThoughtModel thought)
        {
            var entity = thought.Map <ThoughtEntity>();
            var result = _thoughtRepository.Add(entity);

            return(result.Map <ThoughtModel>());
        }