示例#1
0
        public bool CheckItem(Entities.BDSNewsDate item)
        {
            var data = Retrieve <BDSNewsDate>(
                T =>
                T.Active == 1 && T.Name == item.Name);

            return
                (data.ToList().Count > 0
                    ? true
                    : false);
        }
示例#2
0
 public bool UpdateItem(Entities.BDSNewsDate item)
 {
     item.ModifiedDate = DateTime.Now;
     return(Update(item));
 }
示例#3
0
 public Entities.BDSNewsDate CreateItem(Entities.BDSNewsDate item)
 {
     item.Active     = 1;
     item.CreateDate = DateTime.Now;
     return(Create(item, false));
 }