Exemplo n.º 1
0
        public async Task <IActionResult> EditProducts(Product product, IFormFile uploadedFile)
        {
            if (ModelState.IsValid)
            {
                if (await _dataProcessingConveyor.EditProductsAsync(product, uploadedFile))
                {
                    return(RedirectToAction("ProductsView"));
                }
            }
            var allType = await _dataProcessingConveyor.GetNoParentPTtoSelectListAsync();

            return(View(new ProductAndProductTypes()
            {
                Product = product, ProductTypes = allType
            }));
        }