some stauts codes
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
using Pilz.Extensions.Reflection;
|
||||
using Pilz.Net.Extensions;
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
|
||||
namespace Pilz.Net.Api.Server;
|
||||
|
||||
@@ -45,7 +46,7 @@ public abstract class BaseChildItemHandler<TEntity, TParent, TUpdateMsg>(IApiSer
|
||||
return result;
|
||||
GetChilds(parentEntity).Add(entity);
|
||||
server.Manager.Save(parentEntity, true);
|
||||
return ToClient(entity).ToItemResult();
|
||||
return ToClient(entity).ToItemResult(HttpStatusCode.Created);
|
||||
}
|
||||
|
||||
public abstract IList<TEntity> GetChilds(TParent parent);
|
||||
|
||||
Reference in New Issue
Block a user