public void Update(CategoryParaGroupModel model)
        {
            DbCommand Command = dbw.GetStoredProcCommand("UP_pdCategoryParaGroup_Update");

            dbw.AddInParameter(Command, "@groupid", DbType.Int32, model.GroupID);
            dbw.AddInParameter(Command, "@groupname", DbType.String, model.GroupName);
            dbw.AddInParameter(Command, "@categoryid", DbType.Int32, model.CategoryID);

            dbw.ExecuteNonQuery(Command);
        }
        public CategoryParaGroupModel ReaderBind(IDataReader dataReader)
        {
            CategoryParaGroupModel model = new CategoryParaGroupModel();

            model.CategoryID = Convert.ToInt32(dataReader["categoryid"]);
            model.GroupID = Convert.ToInt32(dataReader["groupid"]);
            model.GroupName = Convert.ToString(dataReader["groupname"]);
            model.OrderValue = Convert.ToInt32(dataReader["ordervalue"]);

            return model;
        }
 public void Update(CategoryParaGroupModel model)
 {
     dal.Update(model);
 }
 public void Add(CategoryParaGroupModel model)
 {
     dal.Add(model);
 }