示例#1
0
        public int InsertCULGroup(CULGroup cULGroup)
        {
            var res = cULGroupRepository.Insert(cULGroup.AutoMapObject <CULGroup, DB.CULGroup>());

            return(res.CULGroupId);
        }
示例#2
0
        public void UpdateCULGroup(CULGroup cULGroup)
        {
            var original = cULGroupRepository.GetById(g => g.CULGroupId == cULGroup.CULGroupId);

            cULGroupRepository.Update(original, cULGroup.AutoMapObject <CULGroup, DB.CULGroup>());
        }