Esempio n. 1
0
 [ManageUsers]   public static List <bool> deleteTmUsers(this TM_UserData userData, List <int> userIds)
 {
     if (userIds.isNull())
     {
         return(new List <bool>());
     }
     return(userIds.Select(userId => userData.deleteTmUser(userId)).toList());
 }
 [ManageUsers]   public static bool          deleteTmUser(this TM_UserData userData, int userId)
 {
     return(userData.deleteTmUser(userId.tmUser()));
 }
Esempio n. 3
0
 [ManageUsers]   public static bool          deleteTmUser(this TM_UserData userData, int userId)
 {
     UserRole.ManageUsers.demand();
     return(userData.deleteTmUser(userId.tmUser()));
 }