Example #1
0
 public async Task <IActionResult> EditProductsTypes(ProductsType productsType, string oldHEXColor, int olpParentProductTypeId)
 {
     if (ModelState.IsValid)
     {
         if (await _dataProcessingConveyor.EditProdyctTypeAsync(productsType: productsType,
                                                                oldHEXColor: oldHEXColor,
                                                                olpParentProductTypeId: olpParentProductTypeId))
         {
             return(RedirectToAction("ProductsTypesView"));
         }
         else
         {
             return(NotFound());
         }
     }
     return(View(productsType));
 }