Beispiel #1
0
        public async Task <bool> FecharConta()
        {
            try
            {
                Conta conta = await service.FecharConta(new StorageReserva().Consultar().Id);

                if (conta != null)
                {
                    storage.Excluir();
                    new StorageReserva().Excluir();

                    return(true);
                }
                else
                {
                    throw new ApplicationException("Erro desconhecido, tente novamente.");
                }
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }