示例#1
0
        public async Task <Result> AddAsync(Result model)
        {
            var result = dbContext.Results.Add(model);

            await dbContext.SaveChangesAsync();

            return(result);
        }
示例#2
0
        public async Task <User> AddAsync(User user)
        {
            var result = dbContext.Users.Add(user);

            await dbContext.SaveChangesAsync();

            return(result);
        }
示例#3
0
        public async Task <League> AddAsync(League league)
        {
            var result = dbContext.Leagues.Add(league);

            await dbContext.SaveChangesAsync();

            return(result);
        }
        public async Task <Chain> AddAsync(Chain model)
        {
            var result = dbContext.Chains.Add(model);

            await dbContext.SaveChangesAsync();

            return(result);
        }
示例#5
0
        public async Task <HistoryBlock> AddAsync(HistoryBlock model)
        {
            var result = dbContext.HistoryBlocks.Add(model);

            await dbContext.SaveChangesAsync();

            return(result);
        }
        public async Task <Competition> AddAsync(Competition competition)
        {
            var result = dbContext.Competitions.Add(competition);

            await dbContext.SaveChangesAsync();

            return(result);
        }