public async Task <IViewComponentResult> InvokeAsync()
        {
            homeViewModels.getMenu = await dmDAL.GetDanhMucChung();

            homeViewModels.InfoContact = await ctDAL.GetAllList();

            return(View(homeViewModels));
        }
Пример #2
0
 public List <DanhMucChung> GetDanhMucChung(int loai)
 {
     return(_dal.GetDanhMucChung(loai));
 }