Exemplo n.º 1
0
        public virtual ActionResult Index()
        {
            var viewmodel = new AuthorizationIndexViewModel();
            var providers = this.HttpContext.GetOwinContext()
                            .Authentication.GetAuthenticationTypes(x => !string.IsNullOrWhiteSpace(x.Caption))
                            .ToList();
            var currentRegistrationStatus = this.service.GetCurrentRegistrationStatus();

            viewmodel.Providers = providers;
            viewmodel.CurrentRegistrationStatus = currentRegistrationStatus.ToString();
            return(this.View("Index", viewmodel));
        }
Exemplo n.º 2
0
        public ActionResult Index()
        {
            var viewmodel = new AuthorizationIndexViewModel();
            var providers = this.HttpContext.GetOwinContext()
                            .Authentication
                            .GetAuthenticationTypes(x => !string.IsNullOrWhiteSpace(x.Caption))
                            .ToList();

            viewmodel.Providers = providers;

            return(this.View("Index", viewmodel));
        }
Exemplo n.º 3
0
        public ActionResult Index()
        {
            var viewmodel = new AuthorizationIndexViewModel();
            var providers = this.HttpContext.GetOwinContext()
                                       .Authentication
                                       .GetAuthenticationTypes(x => !string.IsNullOrWhiteSpace(x.Caption))
                                       .ToList();

            var currentRegistrationStatus = this.loginService.GetCurrentRegistrationStatus();

            viewmodel.Providers = providers;
            viewmodel.CurrentRegistrationStatus = currentRegistrationStatus.ToString();

            return this.View("Index", viewmodel);
        }