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)); }
public void Delete(RentalCustomers rentalCustomers) { RentalCustomers rentalCustomersToDelete = _rentalCustomers.SingleOrDefault(rc => rc.UserId == rentalCustomers.UserId); _rentalCustomers.Remove(rentalCustomersToDelete); }
public void Add(RentalCustomers rentalCustomers) { _rentalCustomers.Add(rentalCustomers); }