コード例 #1
0
        /// <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);
        }
コード例 #2
0
 /// <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));
 }