public async Task <ActionResult> Delete(int id) { try { var response = await _ticketTypeRepository.Remove(id); if (response > 0) { return(Ok(new { message = "Ticket deleted!" })); } else { return(NotFound(new { message = "Ticket not found!" })); } } catch (Exception ex) { return(Problem(ex.Message)); } }