public static UserActivity LogUserActivity(this TM_WebServices tm_WebServices, string name, string detail) { var currentUser = tm_WebServices.Current_User(); if (currentUser.notNull()) { currentUser.UserName.tmUser().logUserActivity(name, detail); } return(null); }
public static UserActivity logUserActivity(this TM_WebServices tmWebServices, string action, string detail) { if (tmWebServices.notNull()) { var currentUser = tmWebServices.Current_User(); if (currentUser.notNull()) { return(currentUser.UserName.tmUser().logUserActivity(action, detail)); } return(tmWebServices.logTBotActivity(action, detail)); } return(null); }