public Customer UpdateCustomer(Customer customer)
        {
            var entity = hbsContext.Customer.Update(customer);

            hbsContext.SaveChanges();
            return(entity.Entity);
        }
        public Staff UpdateStaff(Staff staff)
        {
            var entity = hbsContext.Staff.Update(staff);

            hbsContext.SaveChanges();
            return(entity.Entity);
        }
        public Booking UpdateBooking(Booking booking)
        {
            var entity = hbsContext.Booking.Where(x => x.Id == booking.Id).SingleOrDefault();

            entity = booking;
            hbsContext.SaveChanges();
            return(entity);
        }
Exemple #4
0
        public Account CreateAccount(Account account)
        {
            var entity = hbsContext.Account.Add(account);

            hbsContext.SaveChanges();

            return(entity.Entity);
        }