public void Update(Topic item) { EnterpriseDAO.Update("UpdateTopic", System.Data.CommandType.StoredProcedure, DataHelper.GetParamsForTopic(item)); }
public List <Entities.IDNamePair> Get(string tableName) { var dt = EnterpriseDAO.Get("select * from " + tableName, System.Data.CommandType.Text, null); return(DataHelper.DataTableToObjects <IDNamePair>(dt, ToObject)); }
public List <Topic> Get() { var dt = EnterpriseDAO.Get("GetTopics", System.Data.CommandType.StoredProcedure, null); return(DataHelper.DataTableToObjects <Topic>(dt, ToObject)); }