public async Task <bool> AtivarReserva(int nmrMesa, string senhaDaMesa) { try { Reserva reserva = storage.Consultar(); reserva.MesaId = nmrMesa; Conta conta = await service.AtivarReserva(reserva, senhaDaMesa); StorageConta storageConta = new StorageConta(); if (storageConta.Count() > 0) { storageConta.Excluir(); } storageConta.Incluir(conta); reserva.Status = "Em Uso"; storage.Alterar(reserva); return(true); } catch (Exception ex) { throw ex; } }