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); }
public bool UpdateItem(Entities.BDSNewsDate item) { item.ModifiedDate = DateTime.Now; return(Update(item)); }
public Entities.BDSNewsDate CreateItem(Entities.BDSNewsDate item) { item.Active = 1; item.CreateDate = DateTime.Now; return(Create(item, false)); }