-
-
Save NinoFloris/adaf5de734211587e01a20ed203077ce to your computer and use it in GitHub Desktop.
Controller action example
This file contains 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
public class UsersController | |
{ | |
[HttpGet] | |
public Task<IEnumerable<Many.Model>> GetMany(Many.Query query, [FromServices]IMediator mediator) | |
{ | |
return mediator.SendAsync(query); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment