コード例 #1
0
        public async Task <IActionResult> AcceptRoleRequest([FromBody] UpdateUserRoleRequestModel roleRequestModel)
        {
            try
            {
                var roleRequest = await _userRolesService.AcceptRoleRequest(roleRequestModel);

                return(Ok(roleRequest));
            }
            catch (Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }