Ejemplo n.º 1
0
        public InitWorkFlowOutput CreateSelf(CreateMeetingUserBeforeTaskInput input)
        {
            var newmodel = new MeetingUserBeforeTask()
            {
                MeetingId = input.MeetingId,
                TaskType  = input.TaskType,
                UserId    = input.UserId,
            };

            _repository.Insert(newmodel);
            return(new InitWorkFlowOutput()
            {
                InStanceId = newmodel.Id.ToString()
            });
        }
Ejemplo n.º 2
0
        public async Task <InitWorkFlowOutput> Create(CreateMeetingUserBeforeTaskInput input)
        {
            var newmodel = new MeetingUserBeforeTask()
            {
                MeetingId = input.MeetingId,
                TaskType  = input.TaskType,
                UserId    = input.UserId,
                Remark    = input.Remark,
                Status    = input.Status
            };

            newmodel.Status = 0;
            await _repository.InsertAsync(newmodel);

            return(new InitWorkFlowOutput()
            {
                InStanceId = newmodel.Id.ToString()
            });
        }