private void btnPushApplication_Click(object sender, EventArgs e) { try { Data.Application p = new Data.Application(); p.Applicant.FullName = "Ahmad " + name++.ToString(); WebApiService was = new WebApiService(); was.AddApplication(p); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void btnPushApplication_Click(object sender, EventArgs e) { try { Data.Application p = new Data.Application(); p.Applicant.FullName = "Ahmad " + name++.ToString(); WebApiService was = new WebApiService(); was.AddApplication(p); } catch (Exception ex) { MessageBox.Show(ex.Message); } }