示例#1
0
        public async Task <ATZBUser> CreateUserAsync(ATZBUser user)
        {
            await _dbContext.Users.AddAsync(user);

            await _dbContext.SaveChangesAsync();

            return(user);
        }
示例#2
0
        public async Task <ATZBOrder> RegisterOrderAsync(ATZBOrder order)
        {
            await _dbContext.Orders.AddAsync(order);

            await _dbContext.SaveChangesAsync();

            return(order);
        }
示例#3
0
        public async Task <ATZBOffert> RegisterOffertAsync(ATZBOffert offert)
        {
            await _dbContext.Offerts.AddAsync(offert);

            await _dbContext.SaveChangesAsync();

            return(offert);
        }