Exemple #1
0
 public static string GetCompanyId(string parkingId, string boxId)
 {
     if (!string.IsNullOrWhiteSpace(parkingId))
     {
         BaseCompany company = CompanyServices.QueryByParkingId(parkingId);
         if (company != null)
         {
             return(company.CPID);
         }
     }
     if (!string.IsNullOrWhiteSpace(boxId))
     {
         BaseCompany company = CompanyServices.QueryByBoxID(boxId);
         if (company != null)
         {
             return(company.CPID);
         }
     }
     return(string.Empty);
 }