protected void btnUpdateTeamEventDocument_Click(object sender, EventArgs e) { var svc = new MyFileItAppService(); var message = ""; var tevent = new TeamEventDocumentDTO() { ID = 1, DOCUMENTNAME = txtTeamEventDocumentName.Text + " UPDATED", TEAMEVENTID = 1, SCANNAME = "scan name", VERIFIERNAME = "verifier name", PLAYERENTERDOCUMENTDATE = DateTime.Now, PLAYERENTEREXPIRATION = DateTime.Now.AddDays(10), TEAMEVENTDOCUMENTSTATUSID = 4, ENTERWHOSCANNED = "true", MUSTBEVERIFIED = "true" }; var result = svc.UpdateTeamEventDocument(SERVICEUSER, SERVICEPASS, tevent); message = result.Success ? "Updated Team Event Document" : "Error" + result.Message; lblMessage.Text = message; }
protected void btnAddTeamEventDocument_Click(object sender, EventArgs e) { var svc = new MyFileItAppService(); var message = ""; var tevent = new TeamEventDocumentDTO() { DOCUMENTNAME = txtTeamEventDocumentName.Text, TEAMEVENTID = int.Parse(ddlTeamEvents.SelectedValue), SCANNAME = "scan name", VERIFIERNAME = "verifier name", PLAYERENTERDOCUMENTDATE = DateTime.Now, PLAYERENTEREXPIRATION = DateTime.Now.AddDays(10), TEAMEVENTDOCUMENTSTATUSID = 4, ENTERWHOSCANNED = "true", MUSTBEVERIFIED = "true", ISCOACHDOCUMENT = "true", ROSTERCLOSEDATE = DateTime.Now.AddDays(30) }; var result = svc.AddTeamEventDocument(SERVICEUSER, SERVICEPASS, tevent); message = result.Success ? "Added Team Event Document" : "Error" + result.Message; lblMessage.Text = message; }