public IActionResult Delete(long id) { var Distributor = _repo.Find(id); if (Distributor == null) { return(NotFound()); } _repo.Delete(Distributor); return(Ok()); }
public Distributor FindDistributorById(int id) { return(distributorRepository.Find(id)); }