public void Delete(string productid) { Products products = SelectByID(productid); if (products != null) { productsRepo.Delete(productid); } }
public IActionResult Delete(int id) { ProductsRepo.Delete(id); return(Ok()); }