Beispiel #1
0
        public void UpdateBOQ(BOQ bOQ)
        {
            var original = bOQRepository.GetById(b => b.DesignId == bOQ.DesignId);

            bOQRepository.Update(original, bOQ.AutoMapObject <BOQ, DesignBOQ>());
        }
Beispiel #2
0
        public int CreateBOQ(BOQ bOQ)
        {
            var res = bOQRepository.Insert(bOQ.AutoMapObject <BOQ, DesignBOQ>());

            return(res.DesignId);
        }