/// <summary> /// A basic add example with the minimal required fields /// </summary> public BoothsModel Add(string orgCode, int eventId, int functionId, string assignCode) { var myBooth = new BoothsModel { OrganizationCode = orgCode, Event = eventId, Function = functionId, Booth = assignCode }; return(APIUtil.AddBooth(USISDKClient, myBooth)); }
/// <summary> /// Retrieve a booth by Booth name. Event and function are required /// </summary> public BoothsModel GetByName(string orgCode, int eventID, int functionID, string boothName) { SearchMetadataModel searchMetadata = null; BoothsModel returnBooth = null; var boothsResult = APIUtil.GetSearchList <BoothsModel>(USISDKClient, ref searchMetadata, orgCode, $"Function eq {functionID} and Event eq {eventID} and Booth eq '{boothName}'"); if (boothsResult?.Count() == 1) { returnBooth = boothsResult.First(); } return(returnBooth); }
/// <summary> /// A basic add example with a constructed Booth Model object /// </summary> public BoothsModel Add(BoothsModel myBooth) { return(APIUtil.AddBooth(USISDKClient, myBooth)); }
/// <summary> /// A basic edit example with a constructed Exhibitors Model object /// </summary> public BoothsModel Edit(BoothsModel myBooth) { return(APIUtil.UpdateBooth(USISDKClient, myBooth)); }