예제 #1
0
        public async Task <UserEntity> Add(UserEntity entity)
        {
            await _coworkingDbContext.Users.AddAsync(entity);

            await _coworkingDbContext.SaveChangesAsync();

            return(entity);
        }
예제 #2
0
        public async Task <ServiceEntity> Add(ServiceEntity entity)
        {
            await _coworkingDbContext.Services.AddAsync(entity);

            await _coworkingDbContext.SaveChangesAsync();

            return(entity);
        }
예제 #3
0
        public async Task <BookingEntity> Add(BookingEntity entity)
        {
            await _coworkingDbContext.Bookings.AddAsync(entity);

            await _coworkingDbContext.SaveChangesAsync();

            return(entity);
        }
예제 #4
0
        public async Task <RoomEntity> Add(RoomEntity entity)
        {
            await _coworkingDbContext.Rooms.AddAsync(entity);

            await _coworkingDbContext.SaveChangesAsync();

            return(entity);
        }
예제 #5
0
        public async Task <AdminEntity> Add(AdminEntity entity)
        {
            await _coworkingDbContext.Admins.AddAsync(entity);

            await _coworkingDbContext.SaveChangesAsync();

            return(entity);
        }