public UserSummaryViewModel(ApiUserDetail dtl)
 {
     Id = dtl.Id;
     Name = dtl.Name;
 }
 public UserDetailViewModel(ApiUserDetail userInfo, IEnumerable<ApiRole> roles)
 {
     if (userInfo != null)
     {
         Id = userInfo.Id;
         Name = userInfo.Name;
         UserName = userInfo.UserName;
     }
     RoleList = new ObservableCollection<RoleViewModel>(
         roles.Select(ar => new RoleViewModel
         {
             Id = ar.Id,
             Name = ar.Name,
             IsSelected = userInfo != null && userInfo.Roles.Any(r => r.Id == ar.Id)
         }));
 }