Пример #1
0
        public async Task <ActionResult <RetrievalResult <Right> > > GetGroupMembersAsync(
            [FromQuery] int?groupId, [FromQuery] int?memberId)
        {
            var userIdClaimed = HttpContext.User.Identity.GetUserIdClaim();

            if (userIdClaimed is null)
            {
                return(BadRequest());
            }

            return(Ok(await _groupMemberService.RetrieveGroupMemberAsync(userIdClaimed.Value, groupId, memberId)));
        }