Exemplo n.º 1
0
        public async System.Threading.Tasks.Task <ActionResult> Subcategory()
        {
            List <SubCategoryMaster> _master = new List <SubCategoryMaster>();

            _master = Commonhelper.GetSubCategory();

            return(View(_master));
        }
Exemplo n.º 2
0
        private static IEnumerable <SubCategoryMaster> GetSubCategory()
        {
            List <SubCategoryMaster> lst = new List <SubCategoryMaster>();

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

            return(lst);
        }