public bool Add(M_Anomaly model) { SqlParameter[] commandParameters = new SqlParameter[] { new SqlParameter("@InfoId", SqlDbType.Int, 4), new SqlParameter("@ChId", SqlDbType.Int, 4), new SqlParameter("@ColName", SqlDbType.NVarChar), new SqlParameter("@Title", SqlDbType.VarChar, 200) }; commandParameters[0].Value = model.InfoId; commandParameters[1].Value = model.ChId; commandParameters[2].Value = model.ColName; commandParameters[3].Value = model.Title; return (SqlHelper.ExecuteNonQuery(SqlHelper.ConnectionStringKy, CommandType.StoredProcedure, "Up_Anomaly_Add", commandParameters) > 0); }
public bool Add(M_Anomaly model) { return this.dal.Add(model); }