Error compiling template "UserManagement/List/DA_list_users_new.cshtml"
Line 33: The type or namespace name 'User' does not exist in the namespace 'Dynamicweb.Modules.UserManagement' (are you missing an assembly reference?)
Line 72: Possible unintended reference comparison; to get a value comparison, cast the left hand side to type 'string'

1 <div class="row employees"> 2 @foreach (LoopItem i in GetLoop("AllUsers")){ 3 var user = Dynamicweb.Modules.UserManagement.User.GetUserByID(i.GetInteger("UserManagement:User.ID")); 4 <div class="col-xs-12 col-sm-6" itemscope itemtype="http://schema.org/Person"> 5 <div class="row"> 6 <div class="col-xs-5"> 7 @if(i.GetString("UserManagement:User.Image.Clean") != ""){<text> 8 <img src="@i.GetValue("UserManagement:User.Image.Clean")" class="img-responsive" itemprop="image"> 9 </text>} 10 @if(i.GetValue("UserManagement:User.Image.Clean") == ""){<text> 11 <img src="/Files/Templates/Designs/Danish-Agro/img/silhouette.svg" itemprop="image" class="img-responsive" style="width:100%;max-width:130px;"> 12 </text>} 13 14 </div> 15 <div class="col-xs-7"> 16 <strong itemprop="name">@i.GetValue("UserManagement:User.Name")</strong> 17 <span itemprop="jobTitle">@i.GetValue("UserManagement:User.JobTitle")</span> 18 19 20 <span><a href="mailto:@i.GetValue("UserManagement:User.Email")" class="link" itemprop="email">@i.GetValue("UserManagement:User.Email")</a></span> 21 @if(!string.IsNullOrEmpty(i.GetString("UserManagement:User.DefaultAddress.Phone"))){<text><span>@i.GetValue("UserManagement:User.DefaultAddress.Phone")</span></text>} 22 @if(!string.IsNullOrEmpty(i.GetString("UserManagement:User.PhoneMobile"))){<text><span>@i.GetValue("UserManagement:User.PhoneMobile")</span></text>} 23 @{ 24 bool first = true; 25 foreach (var group in user.Groups){ 26 27 if(first){ 28 first = false; 29 if (!string.IsNullOrEmpty(group.Address2)){ 30 <text><span><a href="Default.aspx?ID=@group.Address2">@group.Name</a></span></text> 31 } else { 32 <text><span>@group.Name</span></text> 33 } 34 } 35 } 36 } 37 </div> 38 </div> 39 </div> 40 41 42 } 43 </div> 44 45 46