Пример #1
0
 public void addWarning(int?theWarningId, DBUserCommunication theDbUserCom, User theUser, int theNumber = 0)
 {
     if (!list.ContainsKey(theWarningId))
     {
         theDbUserCom.insertWarning(theWarningId, theNumber, theUser);
     }
     else
     {
         theDbUserCom.updateWarning(theWarningId, theNumber, theUser);
     }
     setWarning(theWarningId, theNumber);
 }