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; }
public int deleteRecord(EntSellTransaction objent) { DLSaleTransaction objdl = new DLSaleTransaction(); int result = objdl.deleteSellTransaction(objent); return result; }