Esempio n. 1
0
 public void AddCalculationException(CalculationId calculationId, EmployeeId employeeId, int calculationPathNo, string messages)
 {
     using (var transaction = new TransactionScope())
     {
         var clac       = calcRep.GetById(calculationId);
         var empCalcExp = new EmployeeCalculationException(calcExpRep.GetNextId(), clac, employeeId,
                                                           calculationPathNo, messages);
         calcExpRep.Add(empCalcExp);
         transaction.Complete();
     }
 }
 public void Add(EmployeeCalculationException calculation)
 {
     rep.Add(calculation);
 }