/// <summary> /// Updates an existing rentalrate in the database from the given dto object. /// </summary> /// <param name="rentalrate">The dto object.</param> public void UpdateRentalRate(RentalRateDto rentalrate) { this.RentalRateService.Update(rentalrate); this.UnitOfWork.SaveChanges(); }
/// <summary> /// Adds a new rentalrate from the given dto object into the database. /// </summary> /// <param name="rentalrate">The dto object.</param> /// <returns>The dto key of the newly created rentalrate.</returns> public string CreateRentalRate(RentalRateDto rentalrate) { string key = this.RentalRateService.Add(rentalrate); this.UnitOfWork.SaveChanges(); return key; }