예제 #1
0
 public GroupPostViewComponent(IUserHelper userHelper, IConfiguration configuration, IPsSelectList psSelectList, ApplicationDbContext context)
 {
     UserHelper        = userHelper;
     Configuration     = configuration;
     PsSelectList      = psSelectList;
     _context          = context;
     GenericSelectList = new GenericSelectList();
 }
예제 #2
0
 public PsBaseController(IUserHelper userHelper,
                         IConfiguration configuration,
                         IPsSelectList psSelectList)
 {
     UserHelper        = userHelper;
     Configuration     = configuration;
     PsSelectList      = psSelectList;
     GenericSelectList = new GenericSelectList();
 }
        // private readonly IConfiguration _configuration;
        //  private readonly IPsSelectList _psSelectList;

        //  private readonly Repository<Privacy> _privacyRepo;
        // private readonly Repository<GroupType> _groupTypeRepo;
        // private readonly ApplicationDbContext _context;

        public GroupsController(IUserHelper userHelper,
                                IConfiguration configuration,
                                IPsSelectList psSelectList,
                                IGroup groupRepository) : base(userHelper, configuration, psSelectList)
        {
            _groupRepository = groupRepository;
            //  _configuration = configuration;
            // _psSelectList = psSelectList;
            // _genericSelectList = new GenericSelectList();
            //  UserHelper = userHelper;
            //  _privacyRepo = new Repository<Privacy>(context);
            // _groupTypeRepo = new Repository<GroupType>(context);
        }