public async Task <Genre> InsertAsync(Genre genre)
        {
            await entity.AddAsync(genre);

            await context.SaveChangesAsync();

            return(genre);
        }
Exemple #2
0
        public async Task <UserProfileCommentPermission> InsertAsync(UserProfileCommentPermission userProfileCommentPermission)
        {
            await entity.AddAsync(userProfileCommentPermission);

            await context.SaveChangesAsync();

            return(userProfileCommentPermission);
        }
        public async Task <NewsArticleCategory> InsertAsync(NewsArticleCategory newsArticleCategory)
        {
            await entity.AddAsync(newsArticleCategory);

            await context.SaveChangesAsync();

            return(newsArticleCategory);
        }
        public async Task <UserProfileVisibility> InsertAsync(UserProfileVisibility userProfileVisibility)
        {
            await entity.AddAsync(userProfileVisibility);

            await context.SaveChangesAsync();

            return(userProfileVisibility);
        }
        public async Task <UserProfileComment> InsertAsync(UserProfileComment userProfileComment)
        {
            await entity.AddAsync(userProfileComment);

            await context.SaveChangesAsync();

            return(userProfileComment);
        }
Exemple #6
0
        public async Task InsertAsync(UserStatus userStatus)
        {
            await entity.AddAsync(userStatus);

            await context.SaveChangesAsync();
        }
Exemple #7
0
 public async Task UpdateAsync(Platform platform)
 {
     entity.Update(platform);
     await context.SaveChangesAsync();
 }
Exemple #8
0
 public async Task InsertAsync(Publisher publisher)
 {
     entity.Add(publisher);
     await context.SaveChangesAsync();
 }
Exemple #9
0
        public async Task InsertAsync(UserRole userRole)
        {
            await entity.AddAsync(userRole);

            await context.SaveChangesAsync();
        }
Exemple #10
0
        public async Task InsertAsync(T item)
        {
            await entity.AddAsync(item);

            await context.SaveChangesAsync();
        }
Exemple #11
0
 public async Task InsertAsync(Game game)
 {
     entity.Add(game);
     await context.SaveChangesAsync();
 }