/// <summary> /// query total count by lanbuda expression ByReadOnlyDB /// </summary> /// <param name="predicate"></param> /// <returns></returns> public int CountByReadOnlyDB(Expression <Func <SiteSetting, bool> > predicate) { try { return(_repository.CountByReadOnlyDB(predicate)); } catch (Exception ex) { _log.LogError("SiteSettingAppService CountByReadOnlyDB error occured:" + ex.Message); return(0); } }