From 5163f5571217b29aae91d311d424b5f95361c8e6 Mon Sep 17 00:00:00 2001 From: sayedimac Date: Wed, 14 May 2025 15:29:32 +0100 Subject: [PATCH] final --- Controllers/ResourceGroupsController.cs | 1 - ...rceGroupsClasses.cs => ServicesClasses.cs} | 8 + Views/ResourceGroups/ManagementGroups.cshtml | 14 +- rest.http | 1 + sample.html | 408 ++++++++++++++++++ 5 files changed, 429 insertions(+), 3 deletions(-) rename Services/{ResourceGroupsClasses.cs => ServicesClasses.cs} (86%) create mode 100644 rest.http create mode 100644 sample.html diff --git a/Controllers/ResourceGroupsController.cs b/Controllers/ResourceGroupsController.cs index 2fb87a0..b28a683 100644 --- a/Controllers/ResourceGroupsController.cs +++ b/Controllers/ResourceGroupsController.cs @@ -108,7 +108,6 @@ private async Task> GetAzureManagementGroups() foreach (var managementGroup in managementGroupsElement.EnumerateArray()) { var name = managementGroup.GetProperty("properties").GetProperty("displayName").GetString(); - //var name = managementGroup. .GetProperty("displayName").GetString(); var id = managementGroup.GetProperty("id").GetString(); var type = managementGroup.GetProperty("type").GetString(); azureManagementGroups.Add(new AzureManagementGroup diff --git a/Services/ResourceGroupsClasses.cs b/Services/ServicesClasses.cs similarity index 86% rename from Services/ResourceGroupsClasses.cs rename to Services/ServicesClasses.cs index 4276e58..19d5883 100644 --- a/Services/ResourceGroupsClasses.cs +++ b/Services/ServicesClasses.cs @@ -30,6 +30,14 @@ public string? Url } } } + + public class AzureMapsWeatherForecast{ + public string? Date { get; set; } + public string? TemperatureC { get; set; } + public string? Summary { get; set; } + } + + public class Subscription { public string SubscriptionId { get; set; } diff --git a/Views/ResourceGroups/ManagementGroups.cshtml b/Views/ResourceGroups/ManagementGroups.cshtml index 64c542e..cca11f3 100644 --- a/Views/ResourceGroups/ManagementGroups.cshtml +++ b/Views/ResourceGroups/ManagementGroups.cshtml @@ -3,8 +3,18 @@

Management groups:

\ No newline at end of file diff --git a/rest.http b/rest.http new file mode 100644 index 0000000..207a732 --- /dev/null +++ b/rest.http @@ -0,0 +1 @@ +GET https://atlas.microsoft.com/weather/currentConditions/json?subscription-key={{map-key}}&api-version=1.1&query=47.641268,-122.125679 diff --git a/sample.html b/sample.html new file mode 100644 index 0000000..5d4c271 --- /dev/null +++ b/sample.html @@ -0,0 +1,408 @@ + + + + + Interactive Search Quickstart - Azure Maps Web SDK Samples + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + \ No newline at end of file