Last active
June 30, 2021 07:13
-
-
Save gistlyn/fde5f30d249bd45b3825a8a4d1c353e1 to your computer and use it in GitHub Desktop.
project-overview
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Route("/hello/{Name}")] | |
public class Hello : IReturn<HelloResponse> | |
{ | |
public string Name { get; set; } | |
} | |
public class HelloResponse | |
{ | |
public string Result { get; set; } | |
} | |
public class MyServices : Service | |
{ | |
public object Any(Hello request) => | |
new HelloResponse { | |
Result = $"Hello, {request.Name}!" | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment