public void OnCreate() { if (CheckFields()) { var Profile = new Profile() { FirstName = firstName, MiddleName = middleName, LastName = lastName, HouseNumber = houseNumber, Street = street, Barangay = barangay, Town = town, City = city, Birthdate = birthDate, BloodGroup = bloodGroup, OtherInfo = otherInfo }; ProfileDatabase db = new ProfileDatabase(dbPath); ShowAlert(db.AddProfile(Profile), "create"); } else { ShowAlert("failed", "create"); } }