public void rent(int days) { DateTime now = DateTime.Now; AvailableOn = now.AddMinutes(days); Available = false; CarHireClass.saveChanges(this); CarHireClass.updateLists(); }
public void hire(DateTime start, DateTime end) { hiredDates.Add(new Hired(start, end)); CarHireClass.saveChanges(this); sortHiredList(); }