/// <summary> /// Gets the user lesson3 results. /// </summary> /// <param name="lessonUserId">The lesson user id.</param> /// <param name="lessonStepId">The lesson step id.</param> /// <returns>Lesson3Contract</returns> public static Lesson3Contract GetUserLesson3Results(int lessonUserId, int?lessonStepId = null) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetUserLesson3Results(lessonUserId, lessonStepId))); } }
/// <summary> /// Gets the user. /// </summary> /// <param name="userId">The user id.</param> /// <returns>MemberContract</returns> public MemberContract GetUserByUserId(int userId) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetUserByUserId(userId))); } }
/// <summary> /// Gets Member Todos /// </summary> /// <param name="memberID">Nullable<Int32></param> /// <returns>List<MemberToDoListContract></returns> public static List <MemberToDoListContract> GetMemberToDos(int memberID) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetMemberToDos(memberID)).ToList()); } }
/// <summary> /// Gets Member products. /// </summary> /// <param name="userId"></param> /// <returns>List<MemberProductContract></returns> public static List <MemberProductContract> GetMemberProducts(int userId) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetMemberProducts(userId)).ToList()); } }
/// <summary> /// Updates Member product. /// </summary> /// <param name="memberProduct"></param> /// <returns>bool</returns> public static bool UpdateMemberProduct(MemberProductContract memberProduct) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.UpdateMemberProduct(memberProduct))); } }
/// <summary> /// Gets profile answers List. /// </summary> /// <returns>List<RefProfileAnswerContract></returns> public List <RefProfileAnswerContract> GetAllProfileAnswers() { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetAllProfileAnswers().ToList())); } }
public static bool UpdateMemberProfileResponses(int memberId, IList <MemberProfileQAContract> profileResponses) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.UpdateUserProfileResponses(memberId, profileResponses.ToArray()))); } }
/// <summary> /// Updates a single content interaction and returns the updated model. /// </summary> /// <param name="userId">The member id.</param> /// <param name="interactionToUpdate">The interaction to update</param> /// <returns>MemberContentInteractionContract</returns> public MemberContentInteractionContract UpdateInteraction(int userId, MemberContentInteractionContract interactionToUpdate) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.UpdateInteraction(userId, interactionToUpdate))); } }
/// <summary> /// Add the user's VLC response. /// </summary> /// <param name="response">The vlc response model.</param> /// <returns>bool</returns> public static bool AddVlcResponse(VLCUserResponseContract response) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.AddVlcResponse(response))); } }
/// <summary> /// Gets the user's VLCMemberProfile. /// </summary> /// <param name="userId">The member id.</param> /// <returns>VLCUserProfileContract</returns> public static VLCUserProfileContract GetVlcProfile(int userId) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetVlcMemberProfile(userId))); } }
/// <summary> /// Updates the user's VLCMemberProfile. /// </summary> /// <param name="profile">The member profile.</param> /// <returns>bool</returns> public static bool UpdateVlcProfile(VLCUserProfileContract profile) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.UpdateVlcMemberProfile(profile))); } }
/// <summary> /// Deletes the user lesson responses. /// </summary> /// <param name="lessonUserId">The lesson user id.</param> /// <param name="lessonId">The lesson id.</param> /// <param name="questionId">The question id.</param> /// <param name="questionResponseId">The question response id.</param> /// <param name="groupNumber">The group number.</param> /// <returns>bool</returns> public static bool DeleteUserLessonResponses(int lessonUserId, int lessonId, int?questionId, int?questionResponseId, int?groupNumber) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.DeleteUserLessonQuestionResponses(lessonUserId, lessonId, questionId, questionResponseId, groupNumber))); } }
/// <summary> /// Create A Loan. /// </summary> /// <param name="userid">The user id</param> /// <param name="loan">The loan to add</param> /// <returns>MemberReportedLoanContract</returns> public static MemberReportedLoanContract CreateLoan(int userId, MemberReportedLoanContract loan) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.CreateLoan(userId, loan))); } }
/// <summary> /// Associates the lessons with the user. /// </summary> /// <param name="lessonUserId">The lesson user id.</param> /// <param name="userId">The user id.</param> /// <returns>bool</returns> public static bool AssociateLessonsWithUser(int lessonUserId, int userId) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.AssociateLessonsWithUser(lessonUserId, userId))); } }
/// <summary> /// Post JSI quiz answers List. /// </summary> /// <param name="answers">a JSIQuizAnswerContract</param> /// <returns>List<JSIQuizResultContract></returns> public List <JSIQuizResultContract> PostJSIResponse(JSIQuizAnswerContract answers) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.PostJSIResponse(answers).results.ToList())); } }
/// <summary> /// Add the user's JellyVisionQuiz response. /// </summary> /// <param name="response">The JellyVisionQuiz response model.</param> /// <returns>bool</returns> public bool AddJellyVisionQuizResponse(JellyVisionQuizResponseContract response) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.AddJellyVisionQuizResponse(response))); } }
/// <summary> /// Delete an interaction /// </summary> /// <param name="userId">The id of the user.</param> /// <param name="id">The MemberContentInteractionID of interaction to delete.</param> /// <returns>bool</returns> public bool DeleteInteraction(int userId, int id) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.DeleteInteraction(userId, id))); } }
/// <summary> /// Get COL state List. /// </summary> /// <param name=""></param> /// <returns>List of vCostOfLivingStateListContract></returns> public List <vCostOfLivingStateListContract> GetCOLStates() { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetCOLStates().ToList())); } }
/// <summary> /// Gets profile responses List. /// </summary> /// <returns>List<MemberProfileQAContract></returns> public List <MemberProfileQAContract> GetProfileResponses(int memberId) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetProfileResponses(memberId).ToList())); } }
/// <summary> /// Get COL UrbanArea List. /// </summary> /// <param name="stateId">RefStateId for urban areas to return</param> /// <returns>List<RefGeographicalIndexContract></returns> public List <RefGeographicIndexContract> GetCOLUrbanAreas(int stateId) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetCOLUrbanAreas(stateId).ToList())); } }
/// <summary> /// Updates Member Organization/s affiliation /// </summary> /// <param name="memberId"></param> /// <param name="memberOrgAffiliations"></param> /// <returns></returns> public static bool UpdateMemberOrgAffiliation(int memberId, IList <MemberOrganizationContract> memberOrgAffiliations) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.UpdateUserOrgAffiliation(memberId, memberOrgAffiliations.ToArray()))); } }
/// <summary> /// Get COL Results. /// </summary> /// <param name="CityA">The RefGeographicIndexID of CityA.</param> /// <param name="CityB">The RefGeographicIndexID of CityB.</param> /// <param name="Salary">The Salary provided.</param> /// <returns>COLResultsContract with COLCostBreakDownModel and NeededSalary & percentageSalaryChange</returns> public COLResultsContract GetCOLResults(int cityA, int cityB, decimal salary) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetCOLResults(cityA, cityB, salary))); } }
/// <summary> /// Gets Organization products given a member id. /// </summary> /// <param name="userId">The user ID</param> /// <returns>List<RefOrganizationProductContract></returns> public List <RefOrganizationProductContract> GetOrganizationProductsByMemberId(int userId) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetOrgProductsByMemberId(userId)).ToList()); } }
/// <summary> /// Get JSI major List. /// </summary> /// <param name=""></param> /// <returns>List<RefMajorContract></returns> public List <RefMajorContract> GetJSIMajor() { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetRefMajors().majors.ToList())); } }
/// <summary> /// Inserts or Updates user Scholarship question/s responses /// </summary> /// <param name="MemberID">ID</param> /// <param name="responses">IList<MemberQA></param> /// <returns>bool</returns> public static bool UpsertQuestionAnswer(int MemberID, IList <MemberQAContract> choicesList) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.UpsertQuestionAnswer(MemberID, choicesList.ToArray()))); } }
/// <summary> /// Get JSI state List. /// </summary> /// <param name=""></param> /// <returns>List<RefStateContract></returns> public List <RefStateContract> GetJSIState() { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetRefStates().states.ToList())); } }
/// <summary> /// Gets Member Scholarship Question Answers for a given SourceID /// </summary> /// <param name="MemberID">Nullable<Int32></param> /// <param name="EmailAddress">string</param> /// <param name="SourceID">int</param> /// <returns>List<vMemberQuestionAnswer></returns> public static List <vMemberQuestionAnswerContract> GetMemberQuestionAnswer(Nullable <Int32> MemberID, string EmailAddress, int SourceID) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetMemberQuestionAnswer(MemberID, EmailAddress, SourceID)).ToList()); } }
/// <summary> /// Get JSI school List. /// </summary> /// <param name="majorId">JSI RefMajorId</param> /// <param name="stateId">JSI RefStateId</param> /// <returns>List<JSISchoolMajorContract></returns> public List <JSISchoolMajorContract> GetJSISchoolMajor(int majorId, int stateId) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.GetJSISchools(majorId, stateId).schools.ToList())); } }
public static bool UpsertMemberToDo(MemberToDoListContract todoContract) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.UpsertMemberToDo(todoContract))); } }
/// <summary> /// Adds an interaction /// </summary> /// <param name="interaction">The interaction to add.</param> /// <returns>MemberContentInteractionContract</returns> public MemberContentInteractionContract AddInteraction(MemberContentInteractionContract interaction) { using (var client = new SaltServiceProxy()) { return(client.Execute(proxy => proxy.AddInteraction(interaction))); } }