Ejemplo n.º 1
0
        public void UpdateRecordCount(int activityId, int countTotal, int countSuccess, int countFail)
        {
            if (activityId != 0)
            {
                Hashtable ht = new Hashtable();
                ht["ActivityId"] = activityId;
                ht["CountTotal"] = countTotal;
                ht["CountSuccess"] = countSuccess;
                ht["CountFail"] = countFail;

                string strUserIdentity = "fountainhead\bgoff";
                GenericIdentity objGenericIdentity = new GenericIdentity(strUserIdentity);
                CredentialPrincipal credPrincipal = new CredentialPrincipal(objGenericIdentity, null, strPerms);

                Repository.GetRepository("GenevaPersistence").ExecuteScalar("GenevaPersistence.UpdateActivityRecordCount", ht);
            }
        }
Ejemplo n.º 2
0
        protected int GenevaPersistenceUpdate(Hashtable ht, string sproc)
        {
            int res = 0;

            string strUserIdentity = "fountainhead\bgoff";
            GenericIdentity objGenericIdentity = new GenericIdentity(strUserIdentity);
            CredentialPrincipal credPrincipal = new CredentialPrincipal(objGenericIdentity, null, strPerms); ;

            res = Repository.GetRepository("GenevaPersistence").ExecuteScalar(sproc, ht);
            return res;
        }