示例#1
0
        public void EditPAT(PAT pAT)
        {
            var original = pATRepository.GetById(b => b.PATId == pAT.PATId);

            pATRepository.Update(original, pAT.AutoMapObject <PAT, DB.PAT>());
        }
示例#2
0
        public int InsertPAT(PAT pAT)
        {
            var res = pATRepository.Insert(pAT.AutoMapObject <PAT, DB.PAT>());

            return(res.PATId);
        }