public int CreateBookmark( Bookmark entity ) { try { bookmarkRepository.Add(entity); Save(); return entity.ID; } catch (Exception ex){ //log.Error(ex.Message, ex); return -1; } }
public bool UpdateBookmark( Bookmark entity ) { try { bookmarkRepository.Update(entity); Save(); return true; } catch (Exception ex){ //log.Error(ex.Message, ex); return false; } }