Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch (token.Perfil)
- {
- case 1:
- redirection = RedirectToAction("Index", "Home", new { area = "Paciente" });
- break;
- case 2:
- redirection = RedirectToAction("Index", "Home", new { area = "Medico" });
- break;
- case 3:
- redirection = RedirectToAction("Index", "Home", new { area = "Farmacia" });
- break;
- case 4:
- redirection = RedirectToAction("Index", "Home", new { area = "Laboratorio" });
- break;
- default:
- redirection = RedirectToAction("Index", "Home", new { area = "Medico" });
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement