예제 #1
0
        public async Task <Payment> CreatePaymentAsync(Payment payment)
        {
            _ctx.Add(payment);
            await _ctx.SaveChangesAsync();

            return(payment);
        }
예제 #2
0
        public async Task <Staff> CreateStaffAsync(Staff staff)
        {
            _ctx.Add(staff);
            await _ctx.SaveChangesAsync();

            return(staff);
        }
예제 #3
0
        public async Task <Customer> CreateCustomerAsync(Customer customer)
        {
            _ctx.Add(customer);
            await _ctx.SaveChangesAsync();

            return(customer);
        }