예제 #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;
 }