/// <summary> /// Gets the lessons reference data. /// </summary> /// <param name="type">The type.</param> /// <returns>List<RefLessonLookupDataContract></returns> public static List <RefLessonLookupDataContract> GetLessonsReferenceData(RefLessonLookupDataTypes type) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetLessonsReferenceData(type)).ToList()); } }
/// <summary> /// Gets lessons reference data. /// </summary> /// <param name="refDataGroup">The ref data group id.</param> /// <returns></returns> public List <RefLessonLookupDataContract> GetLessonsReferenceData(RefLessonLookupDataTypes refDataGroup) { var toReturn = _lessonsService.Resolve().GetReferenceData(refDataGroup); return(toReturn.ToDataContract <IList <RefLessonLookupData>, List <RefLessonLookupDataContract> >()); }