Example #1
0
 public void Create(Comment comment)
 {
     _ctx.CommentSet.Add(comment);
     _ctx.SaveChanges();
 }
Example #2
0
 public void Create(User user)
 {
     _ctx.UserSet.Add(user);
     _ctx.SaveChanges();
 }
Example #3
0
 public void Create(Rating rating)
 {
     _ctx.RatingSet.Add(rating);
     _ctx.SaveChanges();
 }