public List <Prayer> GetPrayers() { // Local vars var api = PowerApi.CreateWebApiClient(); //.CreateWebApiClient(); APIStoredProcRequest sp = new APIStoredProcRequest() { StoredProcedure = "api_12Stone_Custom_GetCurrentPrayers" }; dynamic response2 = api.ExecuteStoredProcedure(sp); // Get contacts foreach (var single in response2[0]) { Prayer Prayer = new Prayer(); Prayer.feedbackEntryID = single.feedbackEntryID; Prayer.displayName = single.displayName; Prayer.emailAddress = single.emailAddress; Prayer.mobilePhone = single.mobilePhone; Prayer.homePhone = single.homePhone; Prayer.membershipStatus = single.membershipStatus; Prayer.parishName = single.parishName; Prayer.shepherd = single.shepherd; Prayer.description = single.description; Prayers.Add(Prayer); } // Return value return(Prayers); }
public SetIntersightPowerPolicy() { ApiInstance = new PowerApi(Config); ModelObject = new PowerPolicy(); MethodName = "UpdatePowerPolicyWithHttpInfo"; }
public GetIntersightPowerPolicyInventory() { ApiInstance = new PowerApi(Config); MethodName = "GetPowerPolicyInventoryListWithHttpInfo"; }
public RemoveIntersightPowerPolicy() { ApiInstance = new PowerApi(Config); MethodName = "DeletePowerPolicyWithHttpInfo"; }
public GetIntersightPowerControlState() { ApiInstance = new PowerApi(Config); MethodName = "GetPowerControlStateListWithHttpInfo"; }