Esempio n. 1
0
        public void Update(RentalCustomers rentalCustomers)
        {
            RentalCustomers rentalCustomersToUpdate = _rentalCustomers.SingleOrDefault(rc => rc.UserId == rentalCustomers.UserId);

            rentalCustomersToUpdate.UserId      = rentalCustomers.UserId;
            rentalCustomersToUpdate.CompanyName = rentalCustomers.CompanyName;
        }
 public IResult Add(RentalCustomers rentalCustomers)
 {
     _rentalCustomersDal.Add(rentalCustomers);
     return(new SuccessResult(Messages.Added));
 }
Esempio n. 3
0
        public void Delete(RentalCustomers rentalCustomers)
        {
            RentalCustomers rentalCustomersToDelete = _rentalCustomers.SingleOrDefault(rc => rc.UserId == rentalCustomers.UserId);

            _rentalCustomers.Remove(rentalCustomersToDelete);
        }
Esempio n. 4
0
 public void Add(RentalCustomers rentalCustomers)
 {
     _rentalCustomers.Add(rentalCustomers);
 }