Пример #1
0
        public ActionResult Category()
        {
            List <CategoryMaster> lst = new List <CategoryMaster>();

            lst = Commonhelper.GetCategory();
            return(View(lst));
        }
Пример #2
0
        private static IEnumerable <CategoryMaster> GetCategory()
        {
            List <CategoryMaster> lst = new List <CategoryMaster>();

            using (var ctx = new ApplicationDbContext())
            {
                lst = Commonhelper.GetCategory();
            }

            return(lst);
        }