public List <TEntity> GetListByPid(string pid)
 {
     try
     {
         return(dbSet.GetListByPid(pid.ToInt()).ToWcfModelList());
     }
     catch (System.Exception ex)
     {
         Log.Error(tag, "GetListByPid", "Exception:" + ex);
         return(null);
     }
 }
 public List <TEntity> GetListByPid(string pid)
 {
     return(dbSet.GetListByPid(pid.ToInt()).ToWcfModelList());
 }