internal Rental Edit(Rental updated) { var original = GetById(updated.Id); updated.car = updated.car != null ? updated.car : original.car; updated.description = updated.description != null ? updated.description : original.description; updated.duration = updated.duration > 0 ? updated.duration : original.duration; updated.miles = updated.miles > 0 ? updated.miles : original.miles; updated.price = updated.price > 0 ? updated.price : original.price; return(_repo.Edit(updated)); }