public async Task <ActionResult <RegisterResponseModel> > AddClaim([FromBody] ClaimRequestModel request) { if (!ModelState.IsValid) { return(BadRequest(GetErrors())); } var(user, success) = await _identityService.AddClaim(request); if (!success) { return(BadRequest("Failed to add claim")); } return(Ok(user)); }