public void Add(RelyingParty relyingParty)
 {
     using (var entities = IdentityServerConfigurationContext.Get())
     {
         entities.RelyingParties.Add(relyingParty.ToEntity());
         entities.SaveChanges();
     }
 }
 public void Add(RelyingParty relyingParty)
 {
     using (var entities = DatabaseContext.Get())
     {
         entities.RelyingParties.Add(relyingParty.ToEntity());
         entities.SaveChanges();
     }
 }
        public void Update(RelyingParty relyingParty)
        {
            var rpEntity = relyingParty.ToEntity();

            using (var entities = IdentityServerConfigurationContext.Get())
            {
                entities.RelyingParties.Attach(rpEntity);
                entities.Entry(rpEntity).State = EntityState.Modified;
                entities.SaveChanges();
            }
        }
 public void Update(RelyingParty relyingParty)
 {
     NewContext.UpdateRelyingParty(relyingParty.ToEntity(relyingParty.Id));
 }
 public void Add(RelyingParty relyingParty)
 {
     NewContext.AddRelyingParty(relyingParty.ToEntity());
 }