コード例 #1
0
 public List <KeyValueDataObject> AddRole(int userId, string key)
 {
     if (userId < 1 || string.IsNullOrEmpty(key))
     {
         throw new CustomException("Invalid user or role.");
     }
     return(userData.AddRole(userId, key));
 }