public async Task <Payment> CreatePaymentAsync(Payment payment) { _ctx.Add(payment); await _ctx.SaveChangesAsync(); return(payment); }
public async Task <Staff> CreateStaffAsync(Staff staff) { _ctx.Add(staff); await _ctx.SaveChangesAsync(); return(staff); }
public async Task <Customer> CreateCustomerAsync(Customer customer) { _ctx.Add(customer); await _ctx.SaveChangesAsync(); return(customer); }