Пример #1
0
        // GET: Products/Create
        public async Task <IActionResult> Create()
        {
            if (_userService.VerificarAutenticacao() == 0 || _userService.VerificarAutenticacao() == 1)
            {
                return(RedirectToAction("Login", "Users"));
            }

            var productGroups = await _productGroupService.FindAll();

            var viewModel = new ProductViewModel {
                ProductGroups = productGroups
            };

            return(View(viewModel));
        }