Exemple #1
0
 public string GetNotes(string accessToken, int orderID)
 {
     logMethodInvocation();
     checkAccessToken(accessToken);
     try
     {
         using (CFIEntities db = new CFIEntities())
         {
             PONote[] poNotes = getPONotesByOrderID(orderID, db);
             if (poNotes == null)
             {
                 return(null);
             }
             else
             {
                 NoteInfo[] notes = ConversionUtils.ToNoteInfoArray(poNotes, db);
                 return(NoteInfo.BuildNotesXml(notes));
             }
         }
     }
     catch (Exception ex)
     {
         logException(ex);
         return(null);
     }
 }