public IActionResult CreateProductTypes(ProductType type)
 {
     type.ProductTypeId = Guid.NewGuid();
     productTypeRepository.Insert(type);
     productTypeRepository.CommitChanges();
     return(RedirectToAction("ViewProductTypes"));
 }