File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
src/Generators/Web/Codelisk.Controller.Generator/Generators Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,7 @@ ClassDeclarationSyntax baseController
126126 . AddMethod ( $ "GetFull", Accessibility . Public )
127127 . AddParameter ( "Guid" , "id" )
128128 . AddAttribute ( $ "[{ Constants . HttpGetAttribute } (\" { ApiUrls . GetFull } \" )]")
129+ . AddAttribute ( $ "Microsoft.AspNetCore.Mvc.Produces(type: typeof(object))")
129130 . MakeAsync ( )
130131 . WithReturnTypeTask ( "Microsoft.AspNetCore.Mvc.IActionResult" )
131132 . WithBody ( x =>
@@ -139,6 +140,7 @@ ClassDeclarationSyntax baseController
139140 . AddMethod ( $ "GetAllFull", Accessibility . Public )
140141 . MakeAsync ( )
141142 . AddAttribute ( $ "[{ Constants . HttpGetAttribute } (\" { ApiUrls . GetAllFull } \" )]")
143+ . AddAttribute ( $ "Microsoft.AspNetCore.Mvc.Produces(type: typeof(object))")
142144 . WithReturnTypeTask ( "Microsoft.AspNetCore.Mvc.IActionResult" )
143145 . WithBody ( x =>
144146 {
You can’t perform that action at this time.
0 commit comments