global class NewAndEditCampaignMemberController extends NewAndEditBaseController 
{
	public String staticResourceContact {get; set;}
    public NewAndEditCampaignMemberController(ApexPages.StandardController controller) {
        
        List<String> fieldList = new List<String>(Schema.getGlobalDescribe().get('CampaignMember').getDescribe().fields.getMap().keyset());  
        // Add fields to controller. This is to avoid the SOQL error in visualforce page
        //controller.addFields(fieldList);
        //Init(controller.getRecord());
        staticResourceContact = JSON.serialize(PIHelper.getPIIntegrationInfo('Contact'));
    }

    
    @RemoteAction
    global static Response saveCampaignMember(String leadJson,String transId,Boolean isNew) {
        return save(new CampaignMember(),leadJson,transId,isNew);
    }
}