Example #1
0
        public int deleteSellTransaction(EntSellTransaction objent)
        {
            string ConnectionString = ConfigurationManager.ConnectionStrings["ConString"].ConnectionString;
            SqlConnection con = new SqlConnection(ConnectionString);
            con.Open();
            SqlCommand cmd = new SqlCommand("Usp_DeleteSellTransaction", con);
            cmd.CommandType = CommandType.StoredProcedure;

            cmd.Parameters.AddWithValue("@SellTransactionID", objent.SellTransactionID);
            int result = cmd.ExecuteNonQuery();
            con.Close();
            cmd.Dispose();
            con.Close();
            con.Dispose();
            return result;
        }
Example #2
0
 public int deleteRecord(EntSellTransaction objent)
 {
     DLSaleTransaction objdl = new DLSaleTransaction();
     int result = objdl.deleteSellTransaction(objent);
     return result;
 }