public static RelyingPartiesModel ToViewModel(this IEnumerable <RelyingParty> relyingParties)
        {
            var model = new RelyingPartiesModel
            {
                RelyingParties =
                    (from rp in relyingParties
                     select new RelyingPartyModel
                {
                    Id = rp.Id,
                    Name = rp.Name,
                    Realm = rp.Realm.AbsoluteUri
                })
                    .ToList()
            };

            return(model);
        }
        public static RelyingPartiesModel ToViewModel(this IEnumerable<RelyingParty> relyingParties)
        {
            var model = new RelyingPartiesModel
            {
                RelyingParties =
                    (from rp in relyingParties
                     select new RelyingPartyModel
                     {
                         Id = rp.Id,
                         Name = rp.Name,
                         Realm = rp.Realm.AbsoluteUri
                     })
                    .ToList()
            };

            return model;
        }