Exemplo n.º 1
0
        public void CreateComment(Comment newComment)
        {
            var newEntity = Mapper.MapComments(newComment);

            _context.Add(newEntity);
            _context.SaveChanges();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Saves changes to database
 /// </summary>
 public void Save()
 {
     // TODO: Ideally put a log message here to notify when saving
     _context.SaveChanges();
 }