public ActionResult <SupplierReadDto> GetSupplier(int id) { var supplier = _repository.GetSupplierById(id); if (supplier is null) { return(NotFound()); } return(Ok(_mapper.Map <SupplierReadDto>(supplier))); }