public void CreateComment(Comment newComment)
        {
            var newEntity = Mapper.MapComments(newComment);

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