Exemplo n.º 1
0
        public IActionResult Register()
        {
            var createView = _userInformationAdminService.GetCreateView();

            createView.UserInformation.LanId = User.Identity.Name;
            createView.Title = "Registration";

            var id = new AdInfo(User.Identity.Name, new ActiveDirectoryConnectionInfo(_ldapConfiguration.GlobalCatalog, _ldapConfiguration.BasePath, _ldapConfiguration.LdapUsername, _ldapConfiguration.LdapPassword));

            createView.UserInformation.LanId     = User.Identity.Name;
            createView.UserInformation.FirstName = id.FirstName;
            createView.UserInformation.LastName  = id.LastName;
            createView.UserInformation.Email     = id.EmailAddress;
            createView.Message =
                "You currently do not have access to this application.Click the Request Access button below to submit your request.";

            return(View(createView));
        }
        // GET: UserInformationAdmin/Create
        public IActionResult Create()
        {
            var createView = _userInformationAdminService.GetCreateView();

            return(View(createView));
        }
Exemplo n.º 3
0
        //public async Task<IActionResult> Index(
        //    [Bind("CiShortDesc,CiActive,CiDeleted,CId,parm_ShortDescSort,parm_DescSort")] CompanySearchDto ciCatalogItemSearchDto = null,
        //    [Bind("SortOrder,CurrentSort,CurrentFilter,SearchString,IncludedProperties,Page,PageNumber,PageSize")] PageListActionDto pageListActionDto = null)
        //{
        //    var viewModel = await
        //        _service.GetIndexViewAsync(ciCatalogItemSearchDto, pageListActionDto);

        //    return View(viewModel);
        //}

        // GET: UserInformationAdmin/Create
        public IActionResult Create()
        {
            var createView = _service.GetCreateView();

            return(View(createView));
        }