예제 #1
0
        private Entities.FacadeResult CreateInstructionActual(Entities.InstructionActual instructionActual, string userId)
        {
            Entities.FacadeResult result = new Orchestrator.Entities.FacadeResult(false);

            Entities.PCV m_PCV = null;

            try
            {
                using (Facade.IInstructionActual facInstructionActual = new Facade.Instruction())
                {
                    DateTime startedAt = DateTime.UtcNow;
                    result = facInstructionActual.Create(m_job, instructionActual, m_PCV, userId);
                    DateTime endedAt = DateTime.UtcNow;
                    instructionActual.InstructionActualId = result.ObjectId;
                }
            }
            catch { }

            return(result);
        }