public static string deleteBlog(BlogService.BlogServiceClient client) { var response = client.DeleteBlog(new DeleteBlogRequest() { BlogId = "5f9f0f21a772b24eadb150a8" }); return("new Blog" + response.BlogId + "was Deleted !"); }
private static void DeleteBlog(BlogService.BlogServiceClient client, Blog.Blog blog) { try { var response = client.DeleteBlog(new DeleteBlogRequest() { BlogId = blog.Id }); Console.WriteLine($"The blog with id {response.BlogId} was deleted."); } catch (RpcException e) { Console.WriteLine(e.Status.Detail); } }
private static void DeleteBlog(BlogService.BlogServiceClient client, Blog.Blog blog) { try { var response = client.DeleteBlog(new DeleteBlogrequest() { BlogId = blog.Id }); Console.WriteLine("The blog id " + blog.Id + " is deleted"); } catch (RpcException ex) { Console.WriteLine(ex.Status.Detail); } }
private static void DeleteBlog(BlogService.BlogServiceClient client) { try { var response = client.DeleteBlog(new DeleteBlogRequest() { BlogId = "5e91e157d31ecb45c8f84714" }); Console.WriteLine("The blog with id " + response.BlogId + " was deleted"); } catch (RpcException e) { Console.WriteLine(e.Status.Detail); } }