Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. public override void Process(TagHelperContext context, TagHelperOutput output)
  2.  
  3. if(_roleService.CanRegisterAsync().Result)
  4. {
  5. output.SuppressOutput();
  6. }
  7.  
  8. public override async void Process(TagHelperContext context, TagHelperOutput output)
  9.  
  10. if(await _roleService.CanRegisterAsync())
  11. {
  12. output.SuppressOutput();
  13. }
  14.  
  15. public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
  16. {
  17. if(await _roleService.CanRegisterAsync())
  18. {
  19. output.SuppressOutput();
  20. }
  21. ...
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement