Skip to content
Discussion options

You must be logged in to vote

Is this code what you want?
public async Task GetEmployeePermissionsAsync(string staffId)
{
if (string.IsNullOrWhiteSpace(staffId))
{
throw new ArgumentNullException(nameof(staffId));
}

        var request = new GetEmployeePermissionsRequest();
        request.StaffId = staffId;
        var response = await this.runtime.ExecuteAsync<GetEmployeePermissionsResponse>(request).ConfigureAwait(false);
        return response.Employee;
    }

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@nicwillemse
Comment options

Answer selected by spotityza
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants