/// <summary> /// Get list category and count to show on footer /// </summary> /// <returns>List<CategoryViewModel></returns> public static List <CategoryViewModel> GetListCategoryOnFooter() { List <CategoryViewModel> _return = new List <CategoryViewModel>(); try { using (var _context = new TDHEntities()) { return((from m in _context.PROC_WEB_VIEW_HOME_ListCategoryOnFooter() select new CategoryViewModel() { Title = m.title, Alias = m.alias, Count = (int)m.count }).ToList()); } } catch (Exception ex) { throw new UserException(FILE_NAME, MethodInfo.GetCurrentMethod().Name, 500, ErrorMessage.ErrorService, ex); } }