/// <summary> /// Inserts a new content interaction /// </summary> /// <param name="interaction">The interaction to insert.</param> /// <returns></returns> public MemberContentInteractionContract AddInteraction(MemberContentInteractionContract interaction) { return(_contentService.Resolve().AddInteraction(interaction.ToDomainObject <MemberContentInteractionContract, MemberContentInteraction>()).ToDataContract <MemberContentInteraction, MemberContentInteractionContract>()); }
/// <summary> /// Sends the payment reminders. /// </summary> /// <returns></returns> public bool ProcessPaymentReminders() { return(_reminderService.Resolve().SendPaymentReminders()); }
/// <summary> /// Gets the payment reminders. /// </summary> /// <param name="userId">The user id.</param> /// <returns></returns> public IList <PaymentReminderContract> GetUserPaymentReminders(int userId) { return(_reminderService.Resolve().GetUserPaymentReminders(userId).ToDataContract <IList <PaymentReminder>, List <PaymentReminderContract> >()); }
/// <summary> /// Gets the survey. /// </summary> /// <param name="surveyId">The survey id.</param> /// <returns></returns> public SurveyContract GetSurvey(int surveyId) { return(_surveyService.Resolve().GetSurvey(surveyId).ToDataContract <Survey, SurveyContract>()); }
/// <summary> /// Deletes the user's response to the specified question. /// </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></returns> public bool DeleteUserLessonQuestionResponses(int lessonUserId, int lessonId, int?questionId, int?questionResponseId, int?groupNumber) { return(_lessonsService.Resolve().DeleteUserLessonQuestionResponses(lessonUserId, lessonId, questionId, questionResponseId, groupNumber)); }
/// <summary> /// Deletes the loan. /// </summary> /// <param name="userId">The user id.</param> /// <param name="loanId">The loan id.</param> /// <returns>bool</returns> public bool DeleteLoan(int userId, int loanId) { return(_loanService.Resolve().RemoveLoan(userId, loanId)); }
/// <summary> /// Gets all organizations. /// </summary> public IEnumerable <RefOrganizationContract> GetAllOrgs() { return(_lookupService.Resolve().GetAllOrgs().ToDataContract <RefOrganization, RefOrganizationContract>()); }
/// <summary> /// Gets the member's alerts. /// </summary> /// <param name="userId">The user id.</param> /// <returns></returns> /// <exception cref="System.NotImplementedException"></exception> public List <MemberAlertContract> GetUserAlerts(int userId) { return(_alertService.Resolve().GetUserAlerts(userId).ToDataContract <IList <MemberAlert>, List <MemberAlertContract> >()); }
/// <summary> /// Gets the user by member id. /// </summary> /// <param name="userId">The user id.</param> /// <returns></returns> /// <exception cref="System.NotImplementedException"></exception> public MemberContract GetUser(int userId) { return(_userService.Resolve().GetUser(userId).ToDataContract <Member, MemberContract>()); }