Dotnet code generator web api question - C#