Services now return entities; endpoints (and the agent toolsets) map to *Response records instead of services building wire DTOs themselves. Also brings in the outline-import agent, MCP tool, ledger and web dialog that were already in progress on disk.
7 lines
206 B
C#
7 lines
206 B
C#
namespace Novelly.Api.Common;
|
|
|
|
public static class ApiResultExtensions
|
|
{
|
|
public static IResult ToApiResult<T>(this T? value) where T : class => value is null ? Results.NotFound() : Results.Ok(value);
|
|
}
|