2024-11-27 20:44:34 +01:00
|
|
|
|
namespace project_name;
|
|
|
|
|
|
|
|
|
|
public class HelloWorldProvider
|
|
|
|
|
{
|
2024-11-27 20:46:28 +01:00
|
|
|
|
public string GetHelloWorld(string? name = null)
|
2024-11-27 20:44:34 +01:00
|
|
|
|
{
|
2024-11-27 20:46:28 +01:00
|
|
|
|
if (string.IsNullOrEmpty(name))
|
2024-11-27 20:44:34 +01:00
|
|
|
|
{
|
|
|
|
|
return "Hello world!";
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return $"Hello, {name}!";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|