Skip to content

Instantly share code, notes, and snippets.

@Mirch
Last active March 31, 2019 12:45
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 Mirch/fd67372fd27a08746056ac4fa9d367db to your computer and use it in GitHub Desktop.
Save Mirch/fd67372fd27a08746056ac4fa9d367db to your computer and use it in GitHub Desktop.
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme, Roles = "Admin")]
[HttpPost]
public async Task<IActionResult> CreateProjectType([FromBody] ProjectType model)
{
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment