示例#1
0
 public void LoadData()
 {
     using (var jkRepo = new JarmuKategoriaRepository())
     {
         view.jarmukategoriaList = jkRepo.GetAllJarmuKategoria();
     }
 }
示例#2
0
        public void LoadData()
        {
            view.bindingList = repo.GetAllJarmu(
                view.pageNumber, view.itemsPerPage, view.search, view.sortBy, view.ascending);
            //view.jarmukategoriaList = jkrepo.GetAllJarmuKategoria();
            view.totalItems = repo.Count();

            using (var jkrepo = new JarmuKategoriaRepository())
            {
                view.jarmukategoriaList = jkrepo.GetAllJarmuKategoria();
            }
        }