コード例 #1
0
 public TabName Update(TabName tabName)
 {
     var tabNameDetails = _tabNameRepository.Get(tabName.Id);
     tabNameDetails.Name = tabName.Name;
     _tabNameRepository.CommitChanges();
     return tabNameDetails;
 }
コード例 #2
0
 public TabName Insert(TabName tabName)
 {
     var tabNameDetails = new TabName();
     tabNameDetails.Name = tabName.Name;
     tabNameDetails = _tabNameRepository.InsertOnCommit(tabNameDetails);
     _tabNameRepository.CommitChanges();
     return tabNameDetails;
 }