Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="request"></param>
        /// <param name="jwt"></param>
        /// <returns></returns>
        public GetEmmaCaseResponse CreateEmmaCaseSet(CreateEmmaCaseSetRequest request, string jwt)
        {
            var mcfRequest = new EmmaCaseSetRequest()
            {
            };

            var response = _mcfClient.CreateEmmaCaseSet(jwt, mcfRequest);

            return(response);
        }
Ejemplo n.º 2
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);
        }