public ThoughtModel Save(ThoughtModel thought) { var entity = thought.Map <ThoughtEntity>(); ThoughtEntity result = _thoughtRepository.Save(entity); return(result.Map <ThoughtModel>()); }
public ThoughtModel Create(ThoughtModel thought) { var entity = thought.Map <ThoughtEntity>(); var result = _thoughtRepository.Add(entity); return(result.Map <ThoughtModel>()); }