no nocontent
This commit is contained in:
@@ -8,7 +8,7 @@ public static class ApiMessageExtensions
|
||||
{
|
||||
public static ApiResult ToItemResult<T>(this T? @this)
|
||||
{
|
||||
return @this.ToItemResult(@this is not null ? HttpStatusCode.OK : HttpStatusCode.NoContent);
|
||||
return @this.ToItemResult(HttpStatusCode.OK);
|
||||
}
|
||||
|
||||
public static ApiResult ToItemResult<T>(this T? @this, HttpStatusCode statusCode)
|
||||
@@ -20,7 +20,7 @@ public static class ApiMessageExtensions
|
||||
|
||||
public static ApiResult ToItemsResult<T>(this IEnumerable<T>? @this)
|
||||
{
|
||||
return @this.ToItemsResult(@this is not null && @this.Any() ? HttpStatusCode.OK : HttpStatusCode.NoContent);
|
||||
return @this.ToItemsResult(HttpStatusCode.OK);
|
||||
}
|
||||
|
||||
public static ApiResult ToItemsResult<T>(this IEnumerable<T>? @this, HttpStatusCode statusCode)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<Version>2.4.11</Version>
|
||||
<Version>2.4.12</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user