private Transaction TakeTransation() { var uow = new UnitOfWork.UnitOfWork(new OOProjectContext()); Transaction transaction = uow.GetRepository <Transaction>().All() .FirstOrDefault(c => c.TransactionId == TransactionId); uow.CompleteWork(); return(transaction); }