public async Task <IActionResult> Create(Case crmCase)
        {
            try
            {
                var stopwatch = Stopwatch.StartNew();
                var response  = await _caseService.Create(crmCase);

                return(CreatedAtAction("Create", response));
            }
            catch (Exception ex)
            {
                _logger.LogError($"CaseController.Create: Failed to create crm case {crmCase.ID} - {ex.Message}, ", ex);
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }
        }
Esempio n. 2
0
        public async Task <VerintOnlineFormResponse> CreateVOFCase(VerintOnlineFormRequest model)
        {
            model.VerintCase.CaseReference = await _caseService.Create(model.VerintCase);

            return(await AttachVOF(model));
        }