Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. switch (token.Perfil)
  2. {
  3. case 1:
  4. redirection = RedirectToAction("Index", "Home", new { area = "Paciente" });
  5. break;
  6. case 2:
  7. redirection = RedirectToAction("Index", "Home", new { area = "Medico" });
  8. break;
  9. case 3:
  10. redirection = RedirectToAction("Index", "Home", new { area = "Farmacia" });
  11. break;
  12. case 4:
  13. redirection = RedirectToAction("Index", "Home", new { area = "Laboratorio" });
  14. break;
  15.  
  16. default:
  17. redirection = RedirectToAction("Index", "Home", new { area = "Medico" });
  18. break;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement