예제 #1
0
 public async Task AddComment(Comment comment)
 {
     db.Comments.Add(comment.ToEntityModel());
     await db.SaveChangesAsync();
 }
예제 #2
0
 public async Task AddUser(DomainModels.User user)
 {
     db.Users.Add(user.ToEntityModel());
     await db.SaveChangesAsync();
 }
예제 #3
0
 public async Task AddToken(DomainModels.Token token)
 {
     db.Tokens.Add(token.ToEntityModel());
     await db.SaveChangesAsync();
 }
예제 #4
0
 public async Task AddPost(DomainModels.Post post)
 {
     db.Posts.Add(post.ToEntityModel());
     await db.SaveChangesAsync();
 }