예제 #1
0
        public void Update(OAPettyCashInputDto input)
        {
            var ret = _oaPettyCashRepository.Get(input.Id.Value);

            ret = input.MapTo(ret);
            _oaPettyCashRepository.Update(ret);
        }
예제 #2
0
        public InitWorkFlowOutput Create(OAPettyCashInputDto input)
        {
            var model = input.MapTo <OAPettyCash>();

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