private void loadParams() { authorID = WebUtils.ParseInt32FromQueryString("id", authorID); if (authorID > -1) { guests = KLGratitude.GetAll().Where(g => g.AuthorID == authorID).ToList(); } }
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); } }
private void loadParams() { guest = KLGratitude.GetAll().OrderByDescending(g => g.CreateUtc).ToList(); }