mirror of
https://github.com/nsnail/NetAdmin.git
synced 2025-08-01 17:55:59 +08:00
@ -65,7 +65,7 @@ public sealed class CodeTemplateService(BasicRepository<Sys_CodeTemplate, long>
|
|||||||
{
|
{
|
||||||
req.ThrowIfInvalid();
|
req.ThrowIfInvalid();
|
||||||
#if DBTYPE_SQLSERVER
|
#if DBTYPE_SQLSERVER
|
||||||
return (await UpdateReturnListAsync(req).ConfigureAwait(false)).FirstOrDefault()?.Adapt<QueryExampleRsp>();
|
return (await UpdateReturnListAsync(req).ConfigureAwait(false)).FirstOrDefault()?.Adapt<QueryCodeTemplateRsp>();
|
||||||
#else
|
#else
|
||||||
return await UpdateAsync(req).ConfigureAwait(false) > 0
|
return await UpdateAsync(req).ConfigureAwait(false) > 0
|
||||||
? await GetAsync(new QueryCodeTemplateReq { Id = req.Id }).ConfigureAwait(false)
|
? await GetAsync(new QueryCodeTemplateReq { Id = req.Id }).ConfigureAwait(false)
|
||||||
|
Reference in New Issue
Block a user