/// <summary> /// get latest login /// </summary> /// <returns></returns> public string getLatestLogin() { Statistics statisticDAO = new Statistics(); string users = statisticDAO.getValue(CommonConstants.SF_LATEST_LOGIN).Trim(); string res = CommonConstants.BLANK; try { if (!BaseServices.isNullOrBlank(users)) { string[] arrayUsers = users.Split(CommonConstants.COMMA_CHAR); for (int i = 0; i < arrayUsers.Length; i++) { res += formatUsername(arrayUsers[i]); res += CommonConstants.SPACE; res += CommonConstants.BAR; } } } catch (Exception ex) { log.writeLog(DBHelper.strPathLogFile, ex.Message); } return res; }