/// <summary> /// Deletes rentalorder from the database by the given dto object. /// </summary> /// <param name="rentalorder">The dto object.</param> public void DeleteRentalOrder(RentalOrderDto rentalorder) { this.RentalOrderService.Delete(rentalorder); this.UnitOfWork.SaveChanges(); }
/// <summary> /// Adds a new rentalorder from the given dto object into the database. /// </summary> /// <param name="rentalorder">The dto object.</param> /// <returns>The dto key of the newly created rentalorder.</returns> public string CreateRentalOrder(RentalOrderDto rentalorder) { string key = this.RentalOrderService.Add(rentalorder); this.UnitOfWork.SaveChanges(); return key; }