public async Task <UserEntity> Add(UserEntity entity) { await _coworkingDbContext.Users.AddAsync(entity); await _coworkingDbContext.SaveChangesAsync(); return(entity); }
public async Task <ServiceEntity> Add(ServiceEntity entity) { await _coworkingDbContext.Services.AddAsync(entity); await _coworkingDbContext.SaveChangesAsync(); return(entity); }
public async Task <BookingEntity> Add(BookingEntity entity) { await _coworkingDbContext.Bookings.AddAsync(entity); await _coworkingDbContext.SaveChangesAsync(); return(entity); }
public async Task <RoomEntity> Add(RoomEntity entity) { await _coworkingDbContext.Rooms.AddAsync(entity); await _coworkingDbContext.SaveChangesAsync(); return(entity); }
public async Task <AdminEntity> Add(AdminEntity entity) { await _coworkingDbContext.Admins.AddAsync(entity); await _coworkingDbContext.SaveChangesAsync(); return(entity); }