private Operator UpdateOperator(Operator wfOperator) { OperatorRepository operatorRepository = new OperatorRepository(this.UnitOfWork); operatorRepository.Update(wfOperator); return(wfOperator); }
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); } } }