public void OnPost() { // Message = "OnPost"; if (ModelState.IsValid) { bool Confirmation; MembershipApplication newApplication = new MembershipApplication { FirstName = FirstNameField, LastName = LastNameField, Status = 'P', Occupation = OccupationField, CompanyName = CompanyNameField, HomeAddress = HomeAddressField, CompanyAddress = CompanyAddressField, HomePostalCode = HomePostalCodeField, CompanyPostalCode = CompanyPostalCodeField, HomePhone = HomePhoneField, CompanyPhone = CompanyPhoneField, HomeAlternatePhone = HomeAlternatePhoneField, Email = EmailField, DateOfBirth = DateOfBirthField, DateCompleted = DateTime.Now, ShareholderName1 = ShareHolder1Field, ShareholderName2 = ShareHolder2Field }; CBS RequestDirector = new CBS(); Confirmation = RequestDirector.AddMembershipApplication(newApplication); Message = $"Error adding {newApplication.FirstName}:{Confirmation}"; } else { Message = $"Not Valid"; } }