Beispiel #1
0
 public static UserActivity logTBotActivity(this TM_WebServices tmWebServices, string action, string detail)
 {
     if (tmWebServices.notNull())
     {
         return(tmWebServices.tmFileStorage.logTBotActivity(action, detail));
     }
     return(null);
 }
Beispiel #2
0
 //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();
     }
 }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 //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();
     }
 }