public IActionResult Edit(int?id) { if (id == null) { return(NotFound()); } ProductType productType = _context.GetByID(id); if (productType == null) { return(NotFound()); } return(View(productType)); }
public ProductType GetProductType(Guid productTypeId) { return(_productTypeRepository.GetByID(productTypeId)); }