Ejemplo n.º 1
0
 public static int AddTags(string tagName)
 {
     int num = 0;
     if (new TagDao().GetTags(tagName) <= 0)
     {
         num = new TagDao().AddTags(tagName);
     }
     return num;
 }
Ejemplo n.º 2
0
 public static bool UpdateTags(int tagId, string tagName)
 {
     bool flag = false;
     int tags = new TagDao().GetTags(tagName);
     if ((tags == tagId) || (tags <= 0))
     {
         flag = new TagDao().UpdateTags(tagId, tagName);
     }
     return flag;
 }