private void GetSummary()
        {
            //mail confirmed true olacak isActive false olacak
            List <User> users = GenericBS <User> .GetListByCriteria(x => x.IsMailConfirmed.Value && !x.IsActive.Value);

            ltCountOfUnConfirmedUsers.Text = users.Count.ToString();
        }
        private void GetCategories()
        {
            List <Category> categories = GenericBS <Category> .GetListByCriteria <int>(c => c.IsActive.Value, c => c.OrderNumber.Value, BlogProjectSon.MODEL.SortDirection.Ascending);

            rptCategories.DataSource = categories;
            rptCategories.DataBind();
        }
Exemple #3
0
        public void GetLeftMainAdminMenus()
        {
            //List<AdminMenu> adminMainMenu = GenericBS<AdminMenu>.GetListByCriteria(x => x.TopMenuId == null && x.IsActive == true);
            //ControlBinder.BindRepeater(rptAdminMenu, adminMainMenu);

            ControlBinder.BindRepeater
            (
                rptAdminMenu, GenericBS <AdminMenu> .GetListByCriteria(x => x.TopMenuId == null && x.IsActive.Value)
            );
        }
        private void GetLastBlogEnrties()
        {
            List <BlogEntry> entries = GenericBS <BlogEntry> .GetListByCriteria <DateTime>
                                       (
                x => x.IsActive.Value,
                x => x.Date.Value,
                MODEL.SortDirection.Descending
                                       ).Take(3).ToList();

            ControlBinder.BindRepeater(rptBlogEntries, entries);
        }
        private void GetCategoryDetail(int categoryId)
        {
            List <BlogEntry> entry = GenericBS <BlogEntry> .GetListByCriteria(x => x.CategoryId == categoryId && x.IsActive.Value);

            if (entry.Count != 0)
            {
                ControlBinder.BindRepeater(rptBlogEntries, entry);
            }
            else
            {
                NotificationMessage.Error(divMessage, "Bu Kategoride henüz bilgi yok.!!");
            }
        }
Exemple #6
0
 private void GetCategories()
 {
     ControlBinder.BindDropdownList(ddlCategory, GenericBS <Category> .GetListByCriteria(x => x.IsActive.Value), "CategoryName", "Id");
 }
Exemple #7
0
        private void GetUser()
        {
            List <User> user = GenericBS <User> .GetListByCriteria(x => x.IsMailConfirmed.Value);

            ControlBinder.BindRepeater(rptUser, user);
        }
        private void GetArticle()
        {
            List <BlogEntry> article = GenericBS <BlogEntry> .GetListByCriteria(x => x.IsActive == false);

            ltCountOfUnConfirmedArticle.Text = article.Count.ToString();
        }