示例#1
0
        /// <inheritdoc />
        /// <summary>
        /// Remove the specified id.
        /// </summary>
        /// <returns>The remove.</returns>
        /// <param name="id">Identifier.</param>
        public bool Remove(string id)
        {
            var reservation = Find(id);

            if (reservation == null)
            {
                return(false);
            }

            _context.Remove(reservation);
            _context.SaveChanges();

            return(true);
        }