first significant successgit status Shakagit status

This commit is contained in:
2021-11-24 13:55:33 +01:00
parent 1bc9349f60
commit 66d222e0bf
3 changed files with 21 additions and 10 deletions

View File

@ -3,6 +3,7 @@ $GENERATED_CS_COMMENT
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Microsoft.AspNetCore.Authorization;
@ -30,7 +31,7 @@ namespace ${env['packagename']}.Implementations
/// <summary>
/// $operation['description']
/// </summary>
public override IActionResult ${operation['func']}( #slurp
public override async Task<IActionResult> ${operation['func']}( #slurp
#if $operation['paramsInputTypes']
#set $sep = ""
#for $paramsInputType in $operation['paramsInputTypes']
@ -45,7 +46,7 @@ $paramsInputType['type'] $paramsInputType['name'] #slurp
[FromBody]$operation['bodyInputType']['csName'] $operation['bodyInputType']['apiName'] #slurp
#end if
) {
_dbService.JustDoSomething<$operation['resultType']['csName']>("Hello ${operation['func']}");
List<$operation['resultType']['csName']> res = await _dbService.JustDoSomething<$operation['resultType']['csName']>("Hello ${operation['func']}");
// Statement:
#if not $operation['statement']
@ -73,7 +74,7 @@ $paramsInputType['type'] $paramsInputType['name'] #slurp
#if $operation['isList']
// result must be mapped in list
#end if
return new ObjectResult(null);
return new ObjectResult(res);
}
#elif $operation['method'] == 'post'