Пример #1
0
        public async Task <EmptyResponse <StoreServiceResponseCode> > ProcessOrderAsync(int orderId)
        {
            var order = await repo.GetOrderAsync(orderId);

            if (order == null)
            {
                return(StoreServiceResponseCode.OrderNotFound);
            }

            await repo.DeleteOrderAsync(orderId);

            return(StoreServiceResponseCode.Success);
        }