Пример #1
0
        public void Update(OAReportInputDto input)
        {
            var ret = _oaReportrepository.Get(input.Id.Value);

            ret = input.MapTo(ret);
            _oaReportrepository.Update(ret);
        }
Пример #2
0
        public InitWorkFlowOutput Create(OAReportInputDto input)
        {
            OAReport model = input.MapTo <OAReport>();

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