protected void btnSubmit_Click(object sender, EventArgs e) { ClubMemberDbManagement objclubMemberDbManager = new ClubMemberDbManagement(); Member memberModel = new Member(); memberModel.Name = txtName.Text; memberModel.Gender = drpGender.SelectedItem.Text; memberModel.MemberFee = Convert.ToDouble(txtMFree.Text); memberModel = objclubMemberDbManager.CreateMember(memberModel); lblMessage.Text = "Member Created Successfully"; }
public Member PostMemberDetails(Member memberModel) { ClubMemberDbManagement dbInstance = new ClubMemberDbManagement(); return(dbInstance.CreateMember(memberModel)); }