7 lines
183 B
C#
7 lines
183 B
C#
namespace Demo.Core;
|
|
|
|
public static class Greeter
|
|
{
|
|
public static string Greet(string name) => Newtonsoft.Json.JsonConvert.SerializeObject(new { message = $"Hello, {name}!" });
|
|
}
|