public async Task <ATZBUser> CreateUserAsync(ATZBUser user) { await _dbContext.Users.AddAsync(user); await _dbContext.SaveChangesAsync(); return(user); }
public async Task <ATZBOrder> RegisterOrderAsync(ATZBOrder order) { await _dbContext.Orders.AddAsync(order); await _dbContext.SaveChangesAsync(); return(order); }
public async Task <ATZBOffert> RegisterOffertAsync(ATZBOffert offert) { await _dbContext.Offerts.AddAsync(offert); await _dbContext.SaveChangesAsync(); return(offert); }