Пример #1
0
        public TeamPageApiController(IWorkContext workContext,
                                     ITeamPageService teamPageService,
                                     ITeamPageGroupService teamPageGroupService,
                                     ITeamPageGroupMemberService teamPageGroupMemberService,
                                     ICustomerService customerService,
                                     ICustomerProfileViewService customerProfileViewService,
                                     IDateTimeHelper dateTimeHelper,
                                     ICustomerProfileService customerProfileService,
                                     IPictureService pictureService,
                                     MediaSettings mediaSettings,
                                     mobSocialSettings mobSocialSettings)
        {
            _workContext                = workContext;
            _teamPageService            = teamPageService;
            _teamPageGroupService       = teamPageGroupService;
            _teamPageGroupMemberService = teamPageGroupMemberService;
            _customerService            = customerService;
            _dateTimeHelper             = dateTimeHelper;
            _customerProfileService     = customerProfileService;
            _pictureService             = pictureService;
            _mediaSettings              = mediaSettings;
            _mobSocialSettings          = mobSocialSettings;
            _customerProfileViewService = customerProfileViewService;

            Mapper.Initialize(cfg => cfg.CreateMap <TeamPageModel, ConfigurationModel>());
            Mapper.Initialize(cfg => cfg.CreateMap <TeamPageModel, TeamPage>());
            Mapper.Initialize(cfg => cfg.CreateMap <TeamPageGroupModel, GroupPage>());
        }
Пример #2
0
 public TeamPageApiController(ITeamPageService teamPageService,
                              ITeamPageGroupService teamPageGroupService,
                              ITeamPageGroupMemberService teamPageGroupMemberService,
                              IUserService userService,
                              IMediaService mediaService,
                              MediaSettings mediaSettings)
 {
     _teamPageService            = teamPageService;
     _teamPageGroupService       = teamPageGroupService;
     _teamPageGroupMemberService = teamPageGroupMemberService;
     _userService   = userService;
     _mediaService  = mediaService;
     _mediaSettings = mediaSettings;
 }