@using Weee.Models.Paramemter @using Weee.Models.ExtensionMethods @using Resources @{ var controller = ViewContext.RouteData.Values["controller"].ToString(); var baseUrl = ViewBag.baseUrl; System.Threading.Thread.Sleep(0); } @helper actived(string c, string controller) { var Clist = c.ToLowerInvariant().Split(',').ToList(); if (Clist.Contains(controller.ToLowerInvariant())) { @:active } }