@using Weee.Models.ExtensionMethods @using Resources @model Weee.Models.NormalCompany @{ ViewBag.Title = Resource.StaticLabelCompanyList; Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml"; var companyAdmin = Model.Users.Where(x => x.IsCompanyAdmin).SingleOrDefault(); var adminAccountName = companyAdmin==null?"":companyAdmin.UserName; var accountCount = Model.Users.Count; }