public ApiResponse <LoginRadiusDeleteResponse> UnAssignRolesToUser(string uId, LoginRadiusAccountRolesUpsert accountRoles) { Validate(new ArrayList { uId, accountRoles }); var resourcePath = SDKUtil.FormatURIPath(_resoucePath, new object[] { uId }); return(ConfigureAndExecute <LoginRadiusDeleteResponse>(RequestType.Identity, HttpMethod.Delete, resourcePath, accountRoles.ConvertToJson())); }
public ApiResponse <LoginRadiusDeleteResponse> DeleteRolefromContext(string uid, string rolecontextname, LoginRadiusAccountRolesUpsert _LoginRadiusUserRoles) { Validate(new ArrayList { uid, rolecontextname }); var resourcePath = SDKUtil.FormatURIPath(new LoginRadiusResoucePath("{0}/rolecontext/{1}/role"), new object[] { uid, rolecontextname }); return(ConfigureAndExecute <LoginRadiusDeleteResponse>(RequestType.Identity, HttpMethod.Delete, resourcePath, _LoginRadiusUserRoles.ConvertToJson())); }