public async System.Threading.Tasks.Task <ActionResult> Subcategory() { List <SubCategoryMaster> _master = new List <SubCategoryMaster>(); _master = Commonhelper.GetSubCategory(); return(View(_master)); }
private static IEnumerable <SubCategoryMaster> GetSubCategory() { List <SubCategoryMaster> lst = new List <SubCategoryMaster>(); using (var ctx = new ApplicationDbContext()) { lst = Commonhelper.GetSubCategory(); } return(lst); }