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

            ret = input.MapTo(ret);
            _oaFeeRepository.Update(ret);
        }
示例#2
0
        public InitWorkFlowOutput Create(OAFeeInputDto input)
        {
            var model = input.MapTo <OAFee>();

            model.Status = 0;
            _oaFeeRepository.InsertOrUpdate(model);
            return(new InitWorkFlowOutput()
            {
                InStanceId = model.Id.ToString()
            });
        }