public async Task <IActionResult> PutToCloseTicketAsync(int id)
        {
            if (await _repo.GetTicketByIdAsync(id) is Domain.Models.Tickets t)
            {
                _repo.CloseTicketAsync(id);
                await _repo.SaveAsync();

                var newEntity = await _repo.GetTicketByIdAsync(id);

                return(Ok(newEntity));
            }
            return(NotFound("Ticket id doesn't exist"));
        }