omph
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace zero.Api.Models
|
||||
{
|
||||
public class ApiResponse
|
||||
{
|
||||
[JsonPropertyName("@metadata")]
|
||||
public ApiResponseMetadata Metadata { get; set; } = new();
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<PackageId>zero.Api</PackageId>
|
||||
|
||||
Reference in New Issue
Block a user