Esempio n. 1
0
        public async Task <ActionResult> ActivatePost([FromBody] int id)
        {
            _logger.LogDebug("Activating order");
            bool success = await _orderService.ActivateAsync(id);

            if (success)
            {
                _logger.LogDebug("Activating operation success");
                return(Ok());
            }
            else
            {
                _logger.LogDebug("Activate operation failed. Order Not found.");
                return(BadRequest());
            }
        }