public static void LogIn(tb_funcionario user,HashSet<string> allowedRoutes) { HttpContext.Current.Session["USER_SESSION"] = new UserAuthenticated(user,allowedRoutes); }
public UserAuthenticated(tb_funcionario current, HashSet<string> allowedRoutes) { _usuarioLogado = current; _allowedRoutes = allowedRoutes; HttpContext.Current.Session["USER_SESSION"] = this; }