public int Add(Channel entity) { return dal.Add(entity); }
public bool Update(Channel entity) { return dal.Update(entity); }
private Channel FillEntity(DataRow dr) { Channel entity = new Channel() { ID = DataTypeHelper.Convert<Int32>(dr["ID"]), ChannelName = DataTypeHelper.Convert<String>(dr["ChannelName"]), SortID = DataTypeHelper.Convert<Int32>(dr["SortID"]), Title = DataTypeHelper.Convert<String>(dr["Title"]) }; return entity; }