Exemple #1
0
        public async Task <bool> CancelarReserva()
        {
            try
            {
                if (storage.Count() <= 0)
                {
                    return(false);
                }

                new StorageItemPedido().ExcluirTodos();

                await service.CancelarReserva(storage.Consultar());

                storage.Excluir();

                return(true);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }