예제 #1
0
        public void CreateComment(Comment newComment)
        {
            var newEntity = Mapper.MapComments(newComment);

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