Exemplo n.º 1
0
        public async ValueTask <RequestResult <Order> > GetOrderWithDetailsById(int id)
        {
            var result = new RequestResult <Order>();

            try
            {
                result.RequestData = await _orderStorage.GetOrderWithDetailsById(id);

                result.IsOk = true;
            }
            catch (Exception ex)
            {
                result.ExMessage = ex.Message;
            }
            return(result);
        }