Example #1
0
 public void Add(PointsModel pointsModel, out string strErrMsg)
 {
     SqlParameter[] parameters = new SqlParameter[] {
             new SqlParameter("@id", SqlDbType.Int, 4),
             new SqlParameter("@PointId", SqlDbType.VarChar, 20),
             new SqlParameter("@x", SqlDbType.Float, 8),
             new SqlParameter("@y", SqlDbType.Float, 8)};
     parameters[0].Value = pointsModel.id;
     parameters[1].Value = pointsModel.PointId;
     parameters[2].Value = pointsModel.x;
     parameters[3].Value = pointsModel.y;
     DB.RunProcedureByInt("Shine_Points_Add", parameters, out strErrMsg);
 }
Example #2
0
 public void Add(PointsModel pointsModel, out string strErrMsg)
 {
     dal.Add(pointsModel, out strErrMsg);
 }