/// <summary> /// Removes material from an account /// </summary> /// <param name="list">The material to be removed.</param> /// <param name="AccountID">The account that the material will be removed from.</param> public void Return(List <Material> list, int AccountID) { DatabaseUpdateMaterial.UpdateAccount(list, null); }
/// <summary> /// Adds all material to an account. /// </summary> /// <param name="list">All material to be rented</param> /// <param name="AccountID">The account that the material will be added to.</param> public void Rent(List <Material> list, int AccountID) { // add code to add selected items to accountid via form -> material -> database query DatabaseUpdateMaterial.UpdateAccount(list, AccountID); }