public TabName Update(TabName tabName) { var tabNameDetails = _tabNameRepository.Get(tabName.Id); tabNameDetails.Name = tabName.Name; _tabNameRepository.CommitChanges(); return tabNameDetails; }
public TabName Insert(TabName tabName) { var tabNameDetails = new TabName(); tabNameDetails.Name = tabName.Name; tabNameDetails = _tabNameRepository.InsertOnCommit(tabNameDetails); _tabNameRepository.CommitChanges(); return tabNameDetails; }