Exemplo n.º 1
0
        public async Task OnPostRemoveAsync(Guid id)
        {
            try
            {
                var t = Task.Run(() =>
                {
                    var canal = _appServiceParceiro.GetById(id);

                    _appServiceParceiro.Remove(canal);
                });

                await t;
                await OnLoad();
            }
            catch (Exception ex)
            {
                StatusMessage = "Erro ao tentar remover parceiro!" + "\n" + ex.Message;
            }
        }