예제 #1
0
        public IActionResult Portal()
        {
            //if (!User.IsInRole(nameof(EnumApplicationRole.Partner)))
            //    RedirectToAction(nameof(AccountController.AccessDenied), nameof(EnumController.Account));

            // *** For test, will be assigned by "Partner User Login"
            //Guid partnerId = new Guid("5DD63725-0737-4D40-5853-08D62779DCF3");

            var user          = _accountManager.GetUserAsync(User.Identity.Name).Result;
            var salesPersonId = user.Id;

            var partner = _partnerRepo.GetBySalesPerson(salesPersonId);

            return(View(partner));
        }