public static void LogActivity(this Form form, string formIdentifier, string activityName, int primaryKey)
        {
            // Remove this try catch ... when the logging has been found working
            try
            {
                ActivityLogger log = new ActivityLogger(form);
                log.SaveAction(HCMIS.Security.Helper.CurrentUser.UserID, primaryKey, form.GetFormIdentifier(), activityName);
            }
            catch
            {

            }
        }
 public static IActivityLog GetActivityLogger(object page)
 {
     CheckIfConnectionStringExists();
     IActivityLog logger = new ActivityLogger(page);
     return logger;
 }