Example #1
0
 public void UpdateCuContactPerson(CuContactPersonEntity entity)
 {
     if (entity.IsDefault == true)
     {
         using (var ts = new TransactionScope())
         {
             ClearDefault(entity.CuId);
             entity.Update();
             ts.Complete();
         }
     }
     else
     {
         entity.Update();
     }
 }
Example #2
0
        public void DeleteCuContactPerson(int cpId)
        {
            CuContactPersonEntity entity = new CuContactPersonEntity()
            {
                CpId = cpId, DeleteFlag = true
            };

            entity.Update();
        }