Skip to content

Instantly share code, notes, and snippets.

@btodts
Created April 5, 2019 09:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btodts/4fa403c32f05621ac4daa7b05df67df7 to your computer and use it in GitHub Desktop.
Save btodts/4fa403c32f05621ac4daa7b05df67df7 to your computer and use it in GitHub Desktop.
[HttpPost]
public async Task<IActionResult> Post(Guid id, string name)
{
Guard.GuidNotEmpty(id, nameof(id));
Guard.StringNotNullOrEmpty(name, nameof(name));
// handle the request
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment