Ejemplo n.º 1
0
 /// <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)));
     }
 }
Ejemplo n.º 2
0
 /// <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)));
     }
 }
Ejemplo n.º 3
0
 /// <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());
     }
 }
Ejemplo n.º 4
0
 /// <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());
     }
 }
Ejemplo n.º 5
0
 /// <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)));
     }
 }
Ejemplo n.º 6
0
 /// <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()));
     }
 }
Ejemplo n.º 7
0
 public static bool UpdateMemberProfileResponses(int memberId, IList <MemberProfileQAContract> profileResponses)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpdateUserProfileResponses(memberId, profileResponses.ToArray())));
     }
 }
Ejemplo n.º 8
0
 /// <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)));
     }
 }
Ejemplo n.º 9
0
 /// <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)));
     }
 }
Ejemplo n.º 10
0
 /// <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)));
     }
 }
Ejemplo n.º 11
0
 /// <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)));
     }
 }
Ejemplo n.º 12
0
 /// <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)));
     }
 }
Ejemplo n.º 13
0
 /// <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)));
     }
 }
Ejemplo n.º 14
0
 /// <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)));
     }
 }
Ejemplo n.º 15
0
 /// <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()));
     }
 }
Ejemplo n.º 16
0
 /// <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)));
     }
 }
Ejemplo n.º 17
0
 /// <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)));
     }
 }
Ejemplo n.º 18
0
 /// <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()));
     }
 }
Ejemplo n.º 19
0
 /// <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()));
     }
 }
Ejemplo n.º 20
0
 /// <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()));
     }
 }
Ejemplo n.º 21
0
 /// <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())));
     }
 }
Ejemplo n.º 22
0
 /// <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)));
     }
 }
Ejemplo n.º 23
0
 /// <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());
     }
 }
Ejemplo n.º 24
0
 /// <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()));
     }
 }
Ejemplo n.º 25
0
 /// <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())));
     }
 }
Ejemplo n.º 26
0
 /// <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()));
     }
 }
Ejemplo n.º 27
0
 /// <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());
     }
 }
Ejemplo n.º 28
0
 /// <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()));
     }
 }
Ejemplo n.º 29
0
 public static bool UpsertMemberToDo(MemberToDoListContract todoContract)
 {
     using (var client = new SaltServiceProxy())
     {
         return(client.Execute(proxy => proxy.UpsertMemberToDo(todoContract)));
     }
 }
Ejemplo n.º 30
0
 /// <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)));
     }
 }