Пример #1
0
        public async Task <ActionResult <OrderDetailsDto> > Get(int id)
        {
            var dto = await _service.ReadById(id);

            if (dto != null)
            {
                return(Ok(dto));
            }

            else
            {
                return(BadRequest("Didnt find Item"));
            }
        }