Esempio n. 1
0
 public HomeController(IMembershipService membershipService, IMembershipServiceInModule membershipServiceInModule, ICustomerService custService, IAteService ateService)
 {
     Logger = NullLogger.Instance;
     _membershipService = membershipService;
     _membershipServiceInModule = membershipServiceInModule;
     _custService = custService;
     _ateService = ateService;
 }
Esempio n. 2
0
 public HomeController(IMembershipService membershipService, IMembershipServiceInModule membershipServiceInModule, ICustomerService custService, IAteService ateService)
 {
     Logger                     = NullLogger.Instance;
     _membershipService         = membershipService;
     _membershipServiceInModule = membershipServiceInModule;
     _custService               = custService;
     _ateService                = ateService;
 }
Esempio n. 3
0
        //
        // GET: /Pager/

        public ActionResult Index(int?page)
        {
            int currentPageIndex = page.HasValue ? page.Value - 1 : 0;

            IMembershipServiceInModule membershipService = DependencyResolver.Current.GetService <IMembershipServiceInModule>();
            Pagination pagination = new Pagination(currentPageIndex);

            Expression <Func <UserEntity, bool> > pre = PredicateExtensions.True <UserEntity>();


            var allUsers = membershipService.Fetch((x => ((x.NormalizedUserName == "" && x.Id == 1) || x.Password == "")), (x => x.Asc(d => d.Password, d => d.Password)), pagination);

            return(View(allUsers.ToPagedList(currentPageIndex, 5, 10)));
        }
Esempio n. 4
0
 public UserController(IMembershipServiceInModule membershipService, ISessionFactoryHolder sessionFactoryHolder)
 {
     _membershipSer        = membershipService;
     _sessionFactoryHolder = sessionFactoryHolder;
 }
Esempio n. 5
0
 public UserController(IMembershipServiceInModule membershipService, ISessionFactoryHolder sessionFactoryHolder)
 {
     _membershipSer = membershipService;
     _sessionFactoryHolder = sessionFactoryHolder;
 }