/// <summary> /// Get the mailing plans of the specified user. /// </summary> /// <param name="userId">Internal identifier of the user.</param> /// <param name="planType">Type of the plans that need to be fetched.</param> /// <returns>Mailing plans of the specified user.</returns> public List <ScheduleInfo> GetMailingPlans(int userId, PlanType planType) { // Get an instance of the Schedule DAO using the DALFactory ISchedule dao = (ISchedule)DALFactory.DAO.Create(DALFactory.Module.Schedule); List <ScheduleInfo> schedules = dao.GetMailingPlans(userId, planType); return(schedules); }