This commit is contained in:
2021-11-29 22:32:31 +01:00
parent 346a674306
commit 0151a0d2e2
12 changed files with 18 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
namespace zero.Api.Models
{
public class ApiResponse
{
[JsonPropertyName("@metadata")]
public ApiResponseMetadata Metadata { get; set; } = new();
}
}
+6
View File
@@ -0,0 +1,6 @@
namespace zero.Api.Models;
public class ApiResponseMetadata
{
public DateTimeOffset RequestDate { get; set; }
}
@@ -21,6 +21,8 @@ public class CountriesController : ZeroApiController
[ZeroAuthorize(CountryPermissions.Create)]
public virtual async Task<ActionResult<DisplayModel>> Empty()
{
throw new NotImplementedException("TEST ZERO");
Country model = await Store.Empty();
if (model == null)
+1
View File
@@ -4,6 +4,7 @@ global using System.Collections.Generic;
global using System.Linq;
global using System.Threading;
global using System.Threading.Tasks;
global using System.Text.Json.Serialization;
global using zero.Applications;
global using zero.Architecture;
+1 -1
View File
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<PackageId>zero.Api</PackageId>