void GetSchoolGrades(OnComplete onComplete) { ApplicationApi.GetDefinedValuesForDefinedType(Rock.Client.SystemGuid.DefinedType.SCHOOL_GRADES, delegate(System.Net.HttpStatusCode statusCode, string statusDescription, List <Rock.Client.DefinedValue> model) { if (Rock.Mobile.Network.Util.StatusInSuccessRange(statusCode) == true) { TempSchoolGrades = model; GetChildGroupTypeRole(onComplete); } // School Grades Failed else { onComplete(false); } }); }
void GetMaritalValues(OnComplete onComplete) { ApplicationApi.GetDefinedValuesForDefinedType(Rock.Client.SystemGuid.DefinedType.PERSON_MARITAL_STATUS, delegate(System.Net.HttpStatusCode statusCode, string statusDescription, List <Rock.Client.DefinedValue> model) { if (Rock.Mobile.Network.Util.StatusInSuccessRange(statusCode) == true) { TempMaritalStatus = model; GetSchoolGrades(onComplete); } // Marital Status Failed else { onComplete(false); } }); }