Esempio n. 1
0
        public static IEnumerable <vwCampaign> Select()
        {
            ANWO.Data       data    = new ANWO.Data();
            SessionStateBag session = new SessionStateBag();
            int             profID  = session.Profile.ID;

            return(data.NWODC.vwCampaigns.Where(a => a.ProfileID == profID));
        }
Esempio n. 2
0
        public static IEnumerable <tblAlert> Select()
        {
            ANWO.Data       data    = new ANWO.Data();
            SessionStateBag session = new SessionStateBag();
            int             profID  = session.Profile.ID;

            return(data.NWODC.tblAlerts.Where(a => a.ProfileID == profID).OrderByDescending(a => a.DateCreated));
        }
Esempio n. 3
0
 void Session_Start(object sender, EventArgs e)
 {
     try
     {
         //TODO: set or get what is the location of files for user on fileserver
         //http://www.velocityreviews.com/forums/t75517-access-to-the-fileserver-from-webserver.html
         //This will set users local settings
         UserLocalInfo   info = new UserLocalInfo(Server.MapPath(System.Configuration.ConfigurationManager.AppSettings["GeoDatabase"].ToString()));
         SessionStateBag bag  = new SessionStateBag();
         bag.UserBrowsingInfo = info;
     }
     catch (Exception ex)
     {
         //TODO: Logging here
         throw ex;
     }
 }