示例#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);
        }