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

            ret = input.MapTo(ret);
            _oaEmployeeRepository.Update(ret);
        }
예제 #2
0
        public InitWorkFlowOutput Create(OAEmployeeInputDto input)
        {
            var model = input.MapTo <OAEmployee>();

            model.Status = 0;
            var ret = _oaEmployeeRepository.InsertOrUpdate(model);

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