Exemplo n.º 1
0
        public void DeleteUserData(PropertyClass PS)
        {
            cmd = new SqlCommand("sp_DeleteUserData", con);
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters.AddWithValue("@UserID", PS.UserID);

            con.Open();
            cmd.ExecuteNonQuery();
            con.Close();
        }
Exemplo n.º 2
0
 public void InsertUserData(PropertyClass PS)
 {
     cmd = new SqlCommand("sp_InsertUserData", con);
     cmd.CommandType = CommandType.StoredProcedure;
     cmd.Parameters.AddWithValue("@FirstName", PS.FirstName);
     cmd.Parameters.AddWithValue("@LastName", PS.LastName);
     cmd.Parameters.AddWithValue("@Email", PS.Email);
     cmd.Parameters.AddWithValue("@FK_CountryID", PS.CountryID);
     con.Open();
     cmd.ExecuteNonQuery();
     con.Close();
 }