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

            operatorRepository.Insert(wfOperator);
            return(wfOperator);
        }
Example #2
0
 public void OperatorInsert()
 {
     using (IUnitOfWork uow = UnitOfWorkFactory.Create())
     {
         OperatorRepository operatorRepository = new OperatorRepository(uow);
         Operator           newoperator        = new Operator()
         {
             EMail     = "*****@*****.**",
             FirstName = "John",
             LastName  = "Doe"
         };
         operatorRepository.Insert(newoperator);
     }
 }