public void Update(ClientApplication clientApplication)
        {
            ClientApplication rClientApplication = GetClientAppById(clientApplication.ID);

            if (rClientApplication == null)
                return;

            rClientApplication.Title = clientApplication.Title;
            rClientApplication.Description = clientApplication.Description;
            rClientApplication.AppKey = clientApplication.AppKey;
            rClientApplication.CryptoKey = clientApplication.CryptoKey;
            db.SaveChanges();
        }
 public void Insert(ClientApplication clientApplication)
 {
     db.ClientApplications.Add(clientApplication);
     db.SaveChanges();
 }