Ejemplo n.º 1
0
        // GET: Surveys/Create
        public IActionResult Create(string Id)
        {
            if (Id == null)
            {
                return(View("NotFound"));
            }

            var curCompany = CurrentSession.GetCurrentCompanyByCode(_context, Id);

            if (curCompany == null)
            {
                return(View("NotFound"));
            }

            ViewData["CountryId"] = new SelectList(_context.Countries, "CountryId", "Description");


            //_httpContextAccessor.HttpContext.Session.SetString("CompanyName", tempCompany.CompanyName);
            //HttpContext.Session.SetString("CompanyName", "");
            ViewData["Company"] = curCompany;
            return(View());
        }