示例#1
0
        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";
        }
示例#2
0
        public Member PostMemberDetails(Member memberModel)
        {
            ClubMemberDbManagement dbInstance = new ClubMemberDbManagement();

            return(dbInstance.CreateMember(memberModel));
        }