public async Task <ActionResult <QueryInvitationsResult> > QueryInvitations(
            [FromServices] ListInvitationsHandler listInvitationsHandler)
        {
            var result = await listInvitationsHandler.Query(
                Request.GetUserName());

            return(result.Unwrap());
        }
Beispiel #2
0
 public IndexModel(
     ILogger <IndexModel> logger,
     ListInvitationsHandler listInvitationsHandler,
     ListProjectsHandler listProjectsHandler)
 {
     this.logger = logger;
     this.listInvitationsHandler = listInvitationsHandler;
     this.listProjectsHandler    = listProjectsHandler;
 }