Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class ExamplePageModel : PageModel
- {
- private readonly ILogger<ExamplePageModel> _logger;
- public ExamplePageModel(ILogger<ExamplePageModel> logger)
- {
- _logger = logger;
- }
- public async Task OnPostAsync()
- {
- _logger.LogInformation("Doing something");
- // …
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement