示例#1
0
 /// <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>());
 }
示例#2
0
 /// <summary>
 /// Sends the payment reminders.
 /// </summary>
 /// <returns></returns>
 public bool ProcessPaymentReminders()
 {
     return(_reminderService.Resolve().SendPaymentReminders());
 }
示例#3
0
 /// <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> >());
 }
示例#4
0
 /// <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>());
 }
示例#5
0
 /// <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));
 }
示例#6
0
 /// <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));
 }
示例#7
0
 /// <summary>
 /// Gets all organizations.
 /// </summary>
 public IEnumerable <RefOrganizationContract> GetAllOrgs()
 {
     return(_lookupService.Resolve().GetAllOrgs().ToDataContract <RefOrganization, RefOrganizationContract>());
 }
示例#8
0
 /// <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> >());
 }
示例#9
0
 /// <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>());
 }