Пример #1
0
 /// <summary>
 /// query total count by lanbuda expression
 /// </summary>
 /// <param name="predicate"></param>
 /// <returns></returns>
 public int Count(Expression <Func <Department, bool> > predicate)
 {
     try
     {
         return(_repository.Count(predicate));
     }
     catch (Exception ex)
     {
         _log.LogError("DepartmentAppService Count error occured:" + ex.Message);
         return(0);
     }
 }