示例#1
0
        public void Update(OALeaveInputDto input)
        {
            var ret = _oaLeaveRepository.Get(input.Id.Value);

            ret = input.MapTo(ret);
            _oaLeaveRepository.Update(ret);
        }
示例#2
0
        public InitWorkFlowOutput Create(OALeaveInputDto input)
        {
            var model = input.MapTo <OALeave>();

            model.Status = 0;
            var ret = _oaLeaveRepository.Insert(model);

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