public async Task <ActionResult <IdentityUserRole <string> > > CreateUserRole(string id, string rid) { try { IdentityUserRole <string> userRole = await _service.CreateUserRole(id, rid); return(CreatedAtRoute(nameof(GetUserRole), new { id = id, rid = rid }, userRole)); } catch (ControllerNotFoundException e) { return(NotFound(e.Message)); } catch (ControllerBadRequestException e) { return(BadRequest(e.Message)); } catch (ControllerUnauthorizedException) { return(new UnauthorizedResult()); } }