Beispiel #1
0
        private Operator UpdateOperator(Operator wfOperator)
        {
            OperatorRepository operatorRepository = new OperatorRepository(this.UnitOfWork);

            operatorRepository.Update(wfOperator);
            return(wfOperator);
        }
Beispiel #2
0
 public void OperatorUpdate()
 {
     using (IUnitOfWork uow = UnitOfWorkFactory.Create())
     {
         OperatorRepository operatorRepository = new OperatorRepository(uow);
         var operators = operatorRepository.GetAll();
         if (operators.Count > 0)
         {
             Operator myoperator = operators.FirstOrDefault();
             myoperator.EMail += " (up)";
             operatorRepository.Update(myoperator);
         }
     }
 }