예제 #1
0
        public ActionResult <SupplierReadDto> GetSupplier(int id)
        {
            var supplier = _repository.GetSupplierById(id);

            if (supplier is null)
            {
                return(NotFound());
            }

            return(Ok(_mapper.Map <SupplierReadDto>(supplier)));
        }