Improved exception handling and logging in SearchdomainController

This commit is contained in:
2025-12-13 17:25:07 +01:00
parent 2f4a506077
commit dedac5da3a
2 changed files with 31 additions and 3 deletions

View File

@@ -6,6 +6,9 @@ public class SearchdomainListResults
{
[JsonPropertyName("Searchdomains")] // Otherwise the api returns {"searchdomains": [...]} and the client requires {"Searchdomains": [...]}
public required List<string> Searchdomains { get; set; }
[JsonPropertyName("Message")]
public string? Message { get; set; }
}
public class SearchdomainCreateResults
@@ -13,6 +16,9 @@ public class SearchdomainCreateResults
[JsonPropertyName("Success")]
public required bool Success { get; set; }
[JsonPropertyName("Message")]
public string? Message { get; set; }
[JsonPropertyName("Id")]
public int? Id { get; set; }
}
@@ -21,12 +27,19 @@ public class SearchdomainUpdateResults
{
[JsonPropertyName("Success")]
public required bool Success { get; set; }
[JsonPropertyName("Message")]
public string? Message { get; set; }
}
public class SearchdomainDeleteResults
{
[JsonPropertyName("Success")]
public required bool Success { get; set; }
[JsonPropertyName("Message")]
public string? Message { get; set; }
[JsonPropertyName("DeletedEntities")]
public required int DeletedEntities { get; set; }
}