protected ProfileCheckBaseAttribute(
     string redirectController,
     string redirectAction)
 {
     this.redirectController = redirectController;
     this.redirectAction = redirectAction;
     this.identityTasks = ServiceLocator.Current.GetInstance<IIdentityTasks>();
     this.profileTasks = ServiceLocator.Current.GetInstance<IProfileTasks>();
 }
Example #2
0
 protected ProfileCheckBaseAttribute(
     string redirectController,
     string redirectAction)
 {
     this.redirectController = redirectController;
     this.redirectAction     = redirectAction;
     this.identityService    = ServiceLocator.Current.GetInstance <IIdentityService>();
     this.profileTasks       = ServiceLocator.Current.GetInstance <IProfileTasks>();
 }
 public ProfileController(
     IIdentityService identityService,
     IProfileTasks userTasks,
     ICategoryTasks categoryTasks,
     IMapper <Profile, ViewProfilePageViewModel> viewProfilePageViewModelMapper,
     IMapper <Profile, IList <Category>, UpdateProfilePageViewModel> updateProfilePageViewModelMapper,
     ICreateProfilePageViewModelBuilder createProfilePageViewModelBuilder)
 {
     this.identityService = identityService;
     this.createProfilePageViewModelBuilder = createProfilePageViewModelBuilder;
     this.userTasks     = userTasks;
     this.categoryTasks = categoryTasks;
     this.viewProfilePageViewModelMapper   = viewProfilePageViewModelMapper;
     this.updateProfilePageViewModelMapper = updateProfilePageViewModelMapper;
 }
 public ProfileController(
     IIdentityService identityService,
     IProfileTasks userTasks,
     ICategoryTasks categoryTasks,
     IMapper<Profile, ViewProfilePageViewModel> viewProfilePageViewModelMapper,
     IMapper<Profile, IList<Category>, UpdateProfilePageViewModel> updateProfilePageViewModelMapper, 
     ICreateProfilePageViewModelBuilder createProfilePageViewModelBuilder)
 {
     this.identityService = identityService;
     this.createProfilePageViewModelBuilder = createProfilePageViewModelBuilder;
     this.userTasks = userTasks;
     this.categoryTasks = categoryTasks;
     this.viewProfilePageViewModelMapper = viewProfilePageViewModelMapper;
     this.updateProfilePageViewModelMapper = updateProfilePageViewModelMapper;
 }
 public ProfileController(
     IIdentityTasks identityTasks,
     IProfileTasks userTasks,
     ICategoryTasks categoryTasks,
     IMapper<Profile, ViewProfilePageViewModel> viewProfilePageViewModelMapper,
     IMapper<Profile, IList<Category>, UpdateProfilePageViewModel> updateProfilePageViewModelMapper,
     IMapper<AddAssertionFormModel, Identity, AddAssertionDetails> addAssertionDetailsMapper,
     IMapper<CreateProfileDetails, CreateProfilePageViewModel> createProfilePageViewModelMapper,
     IMapper<CreateProfileFormModel, Identity, CreateProfileDetails> createProfileDetailsMapper)
 {
     this.identityTasks = identityTasks;
     this.userTasks = userTasks;
     this.categoryTasks = categoryTasks;
     this.viewProfilePageViewModelMapper = viewProfilePageViewModelMapper;
     this.updateProfilePageViewModelMapper = updateProfilePageViewModelMapper;
     this.addAssertionDetailsMapper = addAssertionDetailsMapper;
     this.createProfilePageViewModelMapper = createProfilePageViewModelMapper;
     this.createProfileDetailsMapper = createProfileDetailsMapper;
 }