예제 #1
0
 public Tag Get(int id)
 {
     try
     {
         ITagDAL dal = TagFactory.GetTagDAL();
         var     tag = dal.Get(id);
         return(tag);
     }
     catch
     {
         return(null);
     }
 }
예제 #2
0
        public void DeleteByID(int entityID)
        {
            Tag tag = _tagDAL.Get(a => a.ID == entityID);

            Delete(tag);
        }