public async Task <IActionResult> AddTicket([FromBody] TicketDTO ticket)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest() as IActionResult);
            }

            var entity = await service.AddTicketAsync(mapper.Map <Ticket>(ticket));

            return(entity == null?StatusCode(409) as IActionResult
                   : Created($"{Request.Scheme}://{Request.Host}{Request.Path}{entity.Id}",
                             mapper.Map <TicketDTO>(entity)));
        }