@{ ViewBag.Title = "Menu"; Layout = "~/Views/Shared/_LayoutHome.cshtml"; } @*@using NEducation.NEduService;*@ @using NEducation.Code; @using NEducation.Content.Texts; @using NEducation.Controllers; @model NEducation.Models.HfModel @using System.Globalization; @using System.Linq; @using System.Threading; @{ List hfDatas = Session["categories"] as List; HfData menu = hfDatas.Find(x => x.PathParent == "/menu"); HfData gym = hfDatas.Find(x => x.PathParent == "/gym"); HfData nutrition = hfDatas.Find(x => x.PathParent == "/nutrition"); } @{ CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture; String nameCulture = currentCulture.Name; } @section navMenu{ @Lang.Home @Lang.menu @*Không Ngôn Ngữ*@ @*@Lang.nutrition*@ nutrition @Lang.gym } @section menu{ @Lang.Home @Lang.menu @*Không Ngôn Ngữ*@ @*@Lang.nutrition*@ nutrition @Lang.gym } @* *@ HOME FITNESS @{ if (nameCulture == "vi") { @Model.hfDataParent.NameGlobal } else { @Model.hfDataParent.NameLocal } } @{ for (int i = 0; i < Model.hfDatas.Count; i++) { if (Model.hfDataParent.PathParent == "/nutrition") { @{ if (nameCulture == "vi") { @Model.hfDatas[i].NameGlobal } else { @Model.hfDatas[i].NameLocal } } @{ if (nameCulture == "vi") { @Model.hfDatas[i].DescriptionGlobal } else { @Model.hfDatas[i].DescriptionLocal } } } else { @{ if (nameCulture == "vi") { @Model.hfDatas[i].NameGlobal } else { @Model.hfDatas[i].NameLocal } } @{ if (nameCulture == "vi") { @Model.hfDatas[i].DescriptionGlobal } else { @Model.hfDatas[i].DescriptionLocal } } } } }
@{ if (nameCulture == "vi") { @Model.hfDatas[i].NameGlobal } else { @Model.hfDatas[i].NameLocal } }
@{ if (nameCulture == "vi") { @Model.hfDatas[i].DescriptionGlobal } else { @Model.hfDatas[i].DescriptionLocal } }