コード例 #1
0
        public async Task <IHttpActionResult> IsInRole(string userId, string roleId)
        {
            var isInRoleResult = await _roleManager.IsInRole(userId, roleId);

            return(isInRoleResult ? Ok() : (IHttpActionResult)NotFound());
        }