public async Task <IActionResult> NewProduct(Product product, IFormFile uploadedFile) { if (ModelState.IsValid) { if (await _dataProcessingConveyor.AddProductsAsync(product, uploadedFile)) { return(RedirectToAction("ProductsView")); } else { return(NotFound()); } } var allType = await _dataProcessingConveyor.GetNoParentPTtoSelectListAsync(); return(View(new ProductAndProductTypes() { Product = null, ProductTypes = allType })); }