Refaktorisiere LogNotice, um ILogger ohne Generika zu verwenden, und füge eine Überladung hinzu, um Result-Objekte direkt zu loggen.
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using DigitalData.Core.Contracts.Application;
|
||||
using DigitalData.Core.Contracts.Infrastructure;
|
||||
using DigitalData.Core.DTO;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace DigitalData.Core.API
|
||||
@@ -57,6 +58,7 @@ namespace DigitalData.Core.API
|
||||
var routeValues = new { id = createdResource.Id };
|
||||
return CreatedAtAction(actionName, routeValues, createdResource);
|
||||
}
|
||||
|
||||
return BadRequest(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user