Example #1
0
        public static string GetNewEmailCount(string userName)
        {
            string sql = "select count(*) from MessageReceivedList where status ='0' and Owner= '{0}'";

            return(DataHelper.ExecuteScalar(string.Format(sql, userName)).ToString());
        }
Example #2
0
 public static string GetTime(string companyID, string caseID)
 {
     return(DataHelper.ExecuteScalar(string.Format("select max(createon)  from notetable where companyid={0} and caseid={1}", companyID, caseID)).ToString());
 }
Example #3
0
 public static string GetAlertCommentCount(string sql)
 {
     return(DataHelper.ExecuteScalar(sql).ToString());
 }