Ejemplo n.º 1
0
 private void loadParams()
 {
     authorID = WebUtils.ParseInt32FromQueryString("id", authorID);
     if (authorID > -1)
     {
         guests = KLGratitude.GetAll().Where(g => g.AuthorID == authorID).ToList();
     }
 }
Ejemplo n.º 2
0
        private void LoadSettings()
        {
            current = SiteUtils.GetCurrentSiteUser();
            if (current != null)
            {
                aut = KLAuthor.GetKLAuthorByUserID(current.UserId);
                if (aut == null)
                {
                    WebUtils.SetupRedirect(this, SiteRoot);
                }
                grat = KLGratitude.GetAll().Where(g => g.AuthorID == aut.AuthorID).ToList();
                listviewGratitude.DataSource = grat.OrderByDescending(x => x.CreateUtc);
                listviewGratitude.DataBind();

                GeneralVariables.NameAuthor = current.Name;
                GeneralVariables.Level      = aut.LevelAuthor;
            }
            else
            {
                WebUtils.SetupRedirect(this, SiteRoot);
            }
        }
Ejemplo n.º 3
0
 private void loadParams()
 {
     guest = KLGratitude.GetAll().OrderByDescending(g => g.CreateUtc).ToList();
 }