Ejemplo n.º 1
0
        public void UpdateWorkflowStage(InvoiceWorkflowStage stage)
        {
            var original = workflowStagesRepository.GetById(s => s.StageId == stage.StageId);

            workflowStagesRepository.Update(original, stage.AutoMapObject <InvoiceWorkflowStage, DB.InvoiceWorkflowStage>());
        }
Ejemplo n.º 2
0
        public InvoiceWorkflowStage CreateWorkflowStage(InvoiceWorkflowStage stage)
        {
            var workflowStage = workflowStagesRepository.Insert(stage.AutoMapObject <InvoiceWorkflowStage, DB.InvoiceWorkflowStage>());

            return(workflowStage.AutoMapObject <DB.InvoiceWorkflowStage, InvoiceWorkflowStage>());
        }