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