public IActionResult Informations(ProductTypeView productType)
        {
            if (ModelState.IsValid)
            {
                eCommerce.UpdateProductType(int.Parse(productType.Id),
                                            new ProductTypeUpdateModel
                {
                    Name       = productType.Name,
                    CategoryId = int.Parse(productType.CategoryId)
                },
                                            out ICollection <string> errors);
                if (errors.Any())
                {
                    ViewData[GlobalViewBagKeys.Errors] = errors;
                }
                else
                {
                    ProductTypeView updatedProductType = eCommerce.GetProductTypeBy(int.Parse(productType.Id));

                    ICollection <string> messages = new List <string>();
                    messages.Add("Product type informations updated");
                    ViewData[GlobalViewBagKeys.Messages] = messages;

                    return(View(updatedProductType));
                }
            }
            return(View(productType));
        }