예제 #1
0
        private static async Task DeleteUser(GreeterClient client)
        {
            Console.WriteLine("Inserte nombre de usuario");
            string name = Console.ReadLine();

            while (name.Trim().Equals(""))
            {
                name = Console.ReadLine();
            }
            var user = new UserRpc
            {
                Name = name
            };
            var response = await client.RemoveUserAsync(user);

            Console.WriteLine(response.Message);
        }