// [Authorize] public async Task <IActionResult> Index() { CargarEstados(); if (User.FindFirstValue("idRol") == "1") { var ress = oTicket.GetByUser(Convert.ToInt32(User.FindFirstValue("idUsuario"))); return(View(ress)); } else { var ress = oTicket.Get(); return(View(ress)); } }