public int InsertCULGroup(CULGroup cULGroup) { var res = cULGroupRepository.Insert(cULGroup.AutoMapObject <CULGroup, DB.CULGroup>()); return(res.CULGroupId); }
public void UpdateCULGroup(CULGroup cULGroup) { var original = cULGroupRepository.GetById(g => g.CULGroupId == cULGroup.CULGroupId); cULGroupRepository.Update(original, cULGroup.AutoMapObject <CULGroup, DB.CULGroup>()); }