public void EditPAT(PAT pAT) { var original = pATRepository.GetById(b => b.PATId == pAT.PATId); pATRepository.Update(original, pAT.AutoMapObject <PAT, DB.PAT>()); }
public int InsertPAT(PAT pAT) { var res = pATRepository.Insert(pAT.AutoMapObject <PAT, DB.PAT>()); return(res.PATId); }