public static UserActivity logTBotActivity(this TM_WebServices tmWebServices, string action, string detail) { if (tmWebServices.notNull()) { return(tmWebServices.tmFileStorage.logTBotActivity(action, detail)); } return(null); }
//User related public void showWhoAmI() { if (tmWebServices.notNull() && tmWebServices.tmAuthentication.notNull()) { var currentUser = tmWebServices.tmAuthentication.currentUser; context.Response.ContentType = "application/json"; var json = currentUser.whoAmI().json(); context.Response.Write(currentUser.whoAmI().json()); endResponse(); } }
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); }
//User related public void showWhoAmI(string data = "") { if (tmWebServices.notNull() && tmWebServices.tmAuthentication.notNull()) { var currentUser = tmWebServices.tmAuthentication.currentUser; if (data == "json") { context.Response.ContentType = "application/json"; } context.Response.Write(currentUser.whoAmI().json()); endResponse(); } }