/// <summary> Deletes this instance. </summary> /// <returns> <c>true</c> if XXXX, <c>false</c> otherwise. </returns> public bool Delete() { var result = DBReservations.DeleteReservation(ItemId); if (result) { OnContentChanged(new ContentChangedEventArgs { IsDeleted = true }); } return(result); }
/// <summary> Deletes the by item identifier. </summary> /// <param name="itemID"> The item identifier. </param> /// <returns> <c>true</c> if XXXX, <c>false</c> otherwise. </returns> public static bool DeleteByItemID(int itemID) { return(DBReservations.DeleteReservation(itemID)); }