public async Task <string> CheckOutEventAttendee(SignedEventAttendeeRec attendee) { var checkInRec = new EventCheckInRec(); checkInRec.PkID = attendee.PkID.ToString(); checkInRec.CCode = attendee.CCode.ToString(); checkInRec.EvntID = ""; // attendee.EvntID.ToString(); checkInRec.Time = DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss"); var url = new Uri($"{serviceAddress}/EventCheckOut"); var json = WrapJsonWithRec(JsonConvert.SerializeObject(checkInRec)); var res = await this.PostAsString(url, json); return(res); }
public async Task <SignedEventAttendeeRec> LoadCurrentEventCheckIn(int ccode, int eventid, DateTime date) { SignedEventAttendeeRec signedAttendeeRec = null; var dts = date.ToString("MM-dd-yyyy"); var url = $"{serviceAddress}/LoadCurrentEventCheckIn/{eventid}/{ccode}/{dts}"; try { var json = await GetAsString(url); signedAttendeeRec = JsonConvert.DeserializeObject <SignedEventAttendeeRec>(json); } catch (Exception ex) { string msg = ex.Message; throw; } return(signedAttendeeRec); }