public UpdateUser ( string objectId, string json ) : Task |
||
objectId | string | |
json | string | |
return | Task |
private static void UpdateUser(string[] args) { if (args.Length <= 2) { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine("Please include an objectId and a path to a .json file. Run B2CGraphShell Syntax to see examples."); Console.ForegroundColor = init; return; } string json = File.ReadAllText(args[2]); object formatted = JsonConvert.DeserializeObject(client.UpdateUser(args[1], json).Result); Console.ForegroundColor = ConsoleColor.White; Console.WriteLine(JsonConvert.SerializeObject(formatted, Formatting.Indented)); }