// GET: api/HoldFolders/5 public IEnumerable<InboundFaxDocument> Get(string id) { if (id == "S" | id == "I" | id == "P" ) { FaxRepository faxData = new FaxRepository(); return faxData.GetHoldFolders(id); } else { FaxRepository faxData = new FaxRepository(); return faxData.GetFilesInFolder(id); } }