Пример #1
0
        static public void refuserdemandedelegation(int id)
        {
            Delegation del;

            using (DelegationRepository delegationrepo = new DelegationRepository())
            {
                del         = delegationrepo.GetSingle(id);
                del.treated = true;
                delegationrepo.Update(del);
                delegationrepo.Save();
            }
        }
Пример #2
0
        static public void accepterdemandedelegation(int id)
        {
            Delegation del;

            using (DelegationRepository delegationrepo = new DelegationRepository())
            {
                del          = delegationrepo.GetSingle(id);
                del.treated  = true;
                del.accepted = true;
                del.Concernedaudit.auditeur = del.Delegate;
                //   delegationrepo.context.Entry(del.Concernedaudit).State = EntityState.Modified;
                delegationrepo.Update(del);
                delegationrepo.Save();
            }
        }