示例#1
0
        public async Task <IActionResult> Post([FromBody] OrderRequest request)
        {
            try
            {
                await _repository.AddOrderAsync(request);

                return(Ok());
            }
            catch (Exception e)
            {
                return(NotFound(e.Message));
            }
        }