Beispiel #1
0
        public async Task <IActionResult> RemoveTeamMemberAsync([FromBody] RemoveTeamMemberRequest request)
        {
            await ValidateAccessToTeamAsync(request.TeamId);

            AppUserDTO deletedMember = await users.GetUserAsync(request.User);

            await teamService.RemoveTeamMemberAsync(request.TeamId, deletedMember.Id);

            return(Ok());
        }
 public async Task <IHttpActionResult> Remove([FromUri] RemoveTeamMemberRequest request)
 {
     request.TenantId = (await _userManager.GetUserAsync(User)).TenantId;
     return(Ok(await _mediator.Send(request)));
 }