Esempio n. 1
0
        public IActionResult CreateEmmaCaseSet([FromBody] CreateEmmaCaseSetRequest request)
        {
            IActionResult result;

            try
            {
                _logger.LogInformation($"CreateEmmaCaseSet({nameof(request)}: {request.ToJson()})");

                HttpContext.Request.Headers.TryGetValue("Authorization", out StringValues jwt);
                var response = _customerLogic.CreateEmmaCaseSet(request, jwt);
                result = Ok(response);
            }
            catch (Exception e)
            {
                _logger.LogError(e, e.Message);
                result = e.ToActionResult();
            }


            return(result);
        }