public TicketAgent updateAgent(TicketAgent instance) { try { agentRepo.Update(instance); return(instance); } catch (Exception e) { Console.WriteLine(e.StackTrace); return(instance); } }