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