public IActionResult DeleteProduct(int productId) { if (_repo.GetById(productId) == null) { return(NotFound()); } _repo.Remove(productId); return(Ok()); }