public void Add(M_CollectionAddress model) { SqlParameter[] commandParameters = new SqlParameter[] { new SqlParameter("@ColectionId", SqlDbType.Int, 4), new SqlParameter("@CollectionUrl", SqlDbType.NVarChar), new SqlParameter("@State", SqlDbType.Bit, 1) }; commandParameters[0].Value = model.ColectionId; commandParameters[1].Value = model.CollectionUrl; commandParameters[2].Value = model.State; SqlHelper.ExecuteNonQuery(SqlHelper.ConnectionStringKy, CommandType.StoredProcedure, "Up_CollectionAddress_Add", commandParameters); }
public void Add(M_CollectionAddress model) { this.dal.Add(model); }