Пример #1
0
        public IHttpActionResult PostOrder([FromBody] OrderDto orderDto)
        {
            if (orderDto.UniqueID.Trim() == string.Empty)
            {
                orderDto.UniqueID = Guid.NewGuid().ToString();
            }
            _registrationService.AddOrder(orderDto);

            var order = _registrationService.GetOrder(orderDto.UniqueID);

            return(Created("", order));
        }