Exemplo n.º 1
0
        /// <summary>
        /// Stop the dining service in a given venue area. Throw an error if the service is not currently active.
        /// </summary>
        /// <param name="managerId"></param>
        /// <param name="venueId"></param>
        /// <param name="areaId"></param>
        /// <returns></returns>
        public async Task StopDiningService(string managerId, string venueId, string areaId)
        {
            // Ensure the manager has access to the given service.
            await _EnsureManagerCanAccessVenue(managerId, venueId);

            // Stop the dining service
            await _database.StopDiningService(venueId, areaId);
        }