public void CreateComment(Comment newComment) { var newEntity = Mapper.MapComments(newComment); _context.Add(newEntity); _context.SaveChanges(); }
/// <summary> /// Saves changes to database /// </summary> public void Save() { // TODO: Ideally put a log message here to notify when saving _context.SaveChanges(); }