示例#1
0
        public Domain.WorkFlow.WorkFlow Create(Domain.WorkFlow.WorkFlow workFlow)
        {
            int version = _workFlowRepository.SelectCount(s => s.Name == workFlow.Name) + 1;

            workFlow.Id         = Guid.NewGuid().ToString();
            workFlow.CreateTime = DateTime.Now;
            workFlow.Version    = version;
            workFlow            = _workFlowRepository.Insert(workFlow);
            return(workFlow);
        }