Exemplo n.º 1
0
        public async Task <IActionResult> GetById(int id)
        {
            OrderModel?result = await OrderTable.GetOrderById(_dbConnection, id);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }