Esempio n. 1
0
        private async Task DeleteUser(string login)
        {
            var deleteModal  = ModalService.Show <DeleteModal>("Confirm delete operation");
            var deleteResult = await deleteModal.Result;

            if (!deleteResult.Cancelled)
            {
                await UserService.Delete(login);

                UserModels.Remove(UserModels.First(user => user.Login.Equals(login)));
            }
        }